mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Moving to subcommands for fs commands
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user