mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-30 04:17:58 +01:00
crystal: add page (#2334)
This commit is contained in:
parent
0d15389278
commit
d844725836
1 changed files with 23 additions and 0 deletions
23
pages/common/crystal.md
Normal file
23
pages/common/crystal.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# crystal
|
||||
|
||||
> Tool for managing crystal source code.
|
||||
|
||||
- Run a crystal file:
|
||||
|
||||
`crystal {{path/to/file.cr}}`
|
||||
|
||||
- Compile a file and all dependencies to a single executable:
|
||||
|
||||
`crystal build {{path/to/file.cr}}`
|
||||
|
||||
- Start a local interactive server for testing the language:
|
||||
|
||||
`crystal play`
|
||||
|
||||
- Create a project directory for a crystal application:
|
||||
|
||||
`crystal init app {{application_name}}`
|
||||
|
||||
- Display all help options:
|
||||
|
||||
`crystal help`
|
Loading…
Reference in a new issue