crystal: add French translation, update page (#10821)
* crystal: add French translation, update page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
36
pages.fr/common/crystal.md
Normal file
36
pages.fr/common/crystal.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# crystal
|
||||
|
||||
> Outil de gestion du code source de Crystal.
|
||||
> Plus d'informations : <https://crystal-lang.org/reference/using_the_compiler>.
|
||||
|
||||
- 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`
|
@@ -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`
|
||||
|
Reference in New Issue
Block a user