kittoframework / kitto

Kitto is a framework for interactive dashboards written in Elixir
http://kitto.io/dashboards/sample
MIT License
956 stars 58 forks source link

Adds the edge and dev switches to `mix kitto.install` #107

Closed davejlong closed 7 years ago

davejlong commented 7 years ago

Fixes #106

CLI will now have the following option:

mix kitto.new foo_bar --edge # <= Creates a new dashboard at `foo_bar` using `{:kitto, github: "kittoframework/kitto", branch: "master"}` as the dependency
mix kitto.new foo_bar --dev my_kitto # <= Creates a new dashboard at `foo_bar` using `{:kitto, path: "$PWD/my_kitto"}` as the dependency

The path for the --dev switch is expanded from the current working directory of the running mix kitto.new command, so if you run mix kitto.new foo_bar --dev my_kitto from /Users/davejlong/projects it will install the new dashboard at /Users/davejlong/projects/foo_bar and use Kitto at (or clone Kitto to) /Users/davejlong/projects/my_kitto

coveralls commented 7 years ago

Coverage Status

Coverage remained the same at 88.92% when pulling 8628ab45cad98364d890d030c055996530bd0ec1 on installer-switches into c0cf3bc20a2e62b5e95e46e311b938f18eebb431 on master.

zorbash commented 7 years ago

Apart from the minor rewording in the code doc it looks good.

davejlong commented 7 years ago

I've updated the CLI to support passing the app name as a separate switch.