Skip to content

Conversation

@carlosms
Copy link
Contributor

@carlosms carlosms commented Oct 1, 2018

Fix #244.

Using go-cli, now the command looks like this:

$ ./gitbase-web version
gitbase-web version dev-c9b1196-dirty build 10-01-2018_17_06_22

$ ./gitbase-web serve -h
Usage:
  gitbase-web [OPTIONS] serve [serve-OPTIONS]

starts serving the application

Help Options:
  -h, --help              Show this help message

[serve command options]

...

Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
@carlosms carlosms requested a review from smola October 1, 2018 15:10
Copy link

@smola smola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. I tried finding a way to add default commands cleanly (so that we can have no subcommands and --version) to go-cli, but didn't find it yet.

@carlosms carlosms merged commit e5a5259 into src-d:master Oct 2, 2018
@carlosms
Copy link
Contributor Author

carlosms commented Oct 2, 2018

Yeah, I'd prefer to skip the subcommand. But I guess it also makes sense for the sake of consistency if all our bins have binname version, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants