diff --git a/pages.fr/common/crystal.md b/pages.fr/common/crystal.md new file mode 100644 index 0000000000..75ff250a25 --- /dev/null +++ b/pages.fr/common/crystal.md @@ -0,0 +1,36 @@ +# crystal + +> Outil de gestion du code source de Crystal. +> Plus d'informations : . + +- Exécute un fichier Crystal : + +`crystal {{chemin/vers/fichier.cr}}` + +- Compile un fichier et toutes ses dépendances en un seul exécutable : + +`crystal build {{chemin/vers/fichier.cr}}` + +- Lit le code source Crystal à partir de la ligne de commande ou de `stdin`, et l'exécute : + +`crystal eval '{{code}}'` + +- Génère la documentation de l'API à partir commentaires dans les fichiers Crystal : + +`crystal docs` + +- Compile et exécute une suite de spécifications Crystal : + +`crystal spec` + +- Démarre un serveur interactif local pour tester le langage : + +`crystal play` + +- Crée un répertoire de projet pour une application Crystal : + +`crystal init app {{nom_application}}` + +- Affiche toutes les options d'aide : + +`crystal help` diff --git a/pages/common/crystal.md b/pages/common/crystal.md index 637a20a160..05446d02fd 100644 --- a/pages/common/crystal.md +++ b/pages/common/crystal.md @@ -11,6 +11,18 @@ `crystal build {{path/to/file.cr}}` +- Read Crystal source code from the command line or `stdin`, and execute it: + +`crystal eval '{{code}}'` + +- Generate API documentation from inline docstrings in Crystal files: + +`crystal docs` + +- Compile and run a Crystal specification suite: + +`crystal spec` + - Start a local interactive server for testing the language: `crystal play`