Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
Crystal bindings to GNU Readline Library.
Add the dependency to your shard.yml
:
dependencies:
readline:
github: crystal-lang/crystal-readline
Run shards install
require "readline"
user_input = Readline.readline("> ")
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)