datopian / datahub-cli-go

DataHub command line interface in go [deprecated]
MIT License
5 stars 1 forks source link

Research heroku approach to its CLI #3

Closed rufuspollock closed 7 years ago

rufuspollock commented 7 years ago

Research how the heroku CLI works, in particular its combination of a go base with nodejs based plugins -- with most of the core functionality in the plugins.

https://github.com/heroku/cli https://devcenter.heroku.com/articles/developing-cli-plugins

Acceptance criteria

Tasks


Results

Notes

rufuspollock commented 7 years ago

FIXED. This research is basically done.

Decision on whether to reuse parts of this and if so how

Lots to reuse from heroku approach (with some tweaking): the go - node intregration is nicely done (and working!) and it looks reasonably straightforward to convert over to cobra and our setup

Description of the heroku cli structure esp how go code uses the node plugins

  • What CLI library it uses (if any) and how we could migrate this to cobra (if that is what we are using)

Description above is updated with my detailed analysis of the heroku CLI structure and how this could work.