From d844725836243ffd8d30c228346ad89b9238c6d1 Mon Sep 17 00:00:00 2001 From: Aaron Tan Date: Fri, 14 Sep 2018 11:58:02 -0400 Subject: [PATCH] crystal: add page (#2334) --- pages/common/crystal.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/crystal.md diff --git a/pages/common/crystal.md b/pages/common/crystal.md new file mode 100644 index 000000000..e9ea96400 --- /dev/null +++ b/pages/common/crystal.md @@ -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`