From 3bec55e0afce43c31e14766e5fb68d343861ccb0 Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Wed, 27 Jan 2016 16:29:29 -0800 Subject: [PATCH] Moving to subcommands for fs commands --- command/fs_ls.go | 2 +- commands.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/command/fs_ls.go b/command/fs_ls.go index c1486722a..44b667117 100644 --- a/command/fs_ls.go +++ b/command/fs_ls.go @@ -13,7 +13,7 @@ func (f *FSListCommand) Help() string { helpText := ` Usage: nomad fs-ls - 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: diff --git a/commands.go b/commands.go index 0280c6c57..1b69883c8 100644 --- a/commands.go +++ b/commands.go @@ -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