Skip to content
No description, website, or topics provided.
Crystal Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
sh
specs
src
templates/sv
.gitignore
README.deploy.md
README.md
shard.lock
shard.yml

README.md

Reference:

  DA.print_help
  DA.print_help substring_search

Cache:

  cache = DA::Cache.new("my_prefix")
  cache.write("my_key", "my value")

  cache = DA::Cache.new("my_prefix")
  cache.read("my_key")
  cache.delete("my_key")

Process:

  DA.exit!(Int32, String)
  DA.exit!(String)

  DA.system!(cmd)  # Prints output of cmd.
  DA.success!(cmd) # Prints output of cmd only on failure and exits.
  DA.run(cmd)      # Shows which command is running and returns status.

Links:

Reference & Intro:

  da_dev compile file.name.ext

  da_dev watch
  da_dev watch reload

  da_dev watch run-file myfile.1.txt
  da_dev watch run-file myfile.2.txt

  da_dev watch proc sleep 10

  da_dev watch run-last-file

  da_dev watch run my_cmd with -args
  da_dev watch run __ with -args

For watch files:

  reset
  clear
  bin compile
  run my process
  proc my long running process
  # bin compile
  PING

Postgresql Development:

The following are for development purposes only.

  sudo -u postgres psql -U postgres
  sudo -u postgres createuser $USER \
    --connection-limit=3      \
    --no-createdb             \
    --no-createrole           \
    --no-superuser            \
    --encrypted               \
    --login

  sudo -u postgres createdb  --owner=$USER my_db_name
You can’t perform that action at this time.