Moving to subcommands for fs commands

This commit is contained in:
Diptanu Choudhury
2016-01-27 16:29:29 -08:00
parent edc112f138
commit 3bec55e0af
2 changed files with 4 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ func (f *FSListCommand) Help() string {
helpText := `
Usage: nomad fs-ls <alloc-id> <path>
Ls displays the contents of the allocation directory for the passed allocation. The path
ls displays the contents of the allocation directory for the passed allocation. The path
is relative to the root of the alloc dir and defaults to root if unspecified.
General Options:

View File

@@ -57,17 +57,17 @@ func Commands(metaPtr *command.Meta) map[string]cli.CommandFactory {
Meta: meta,
}, nil
},
"fs-list": func() (cli.Command, error) {
"fs ls": func() (cli.Command, error) {
return &command.FSListCommand{
Meta: meta,
}, nil
},
"fs-stat": func() (cli.Command, error) {
"fs stat": func() (cli.Command, error) {
return &command.FSStatCommand{
Meta: meta,
}, nil
},
"fs-cat": func() (cli.Command, error) {
"fs cat": func() (cli.Command, error) {
return &command.FSCatCommand{
Meta: meta,
}, nil