This is an project example trying to create a plugin for Amber Framework based on Amber::CLI
Add this to your application's shard.yml
:
targets:
saludo:
main: lib/amber_saludo/src/amber_saludo.cr
dependencies:
amber_saludo:
github: faustinoaq/amber-saludo
Then execute shards build saludo
bin/saludo generate
Generate src/controllers/saludo_controller.cr
and modifies config/routers.cr
adding /saludo
path to your project.
bin/saludo --help
Print help information about saludo
usage.
bin/saludo --version
Print saludo
version.
Based on Amber::CLI
, check Amber repo for more info.
- Fork it ( https://github.com/faustinoaq/amber-saludo/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- faustinoaq Faustino Aguilar - creator, maintainer