Add the ability to print curl commands from CLI (#6113)

This commit is contained in:
Jeff Mitchell
2019-02-01 17:13:51 -05:00
committed by GitHub
parent d647681a37
commit f404e0acd2
7 changed files with 218 additions and 7 deletions

View File

@@ -423,6 +423,11 @@ func initCommands(ui, serverCmdUi cli.Ui, runOpts *RunOptions) {
BaseCommand: getBaseCommand(),
}, nil
},
"print token": func() (cli.Command, error) {
return &PrintTokenCommand{
BaseCommand: getBaseCommand(),
}, nil
},
"read": func() (cli.Command, error) {
return &ReadCommand{
BaseCommand: getBaseCommand(),