mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
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:
parent
8d95be0eaf
commit
bdcd412b4b
2 changed files with 48 additions and 0 deletions
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`
|
||||
|
|
Loading…
Add table
Reference in a new issue