Skip to content

Commit

Permalink
Update per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
grubernaut committed May 16, 2016
1 parent cf2d8b6 commit c1ef910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions command/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,14 @@ func (f *FSCommand) Help() string {
helpText := `
Usage: nomad fs <alloc-id> <path>
fs displays either the contents of an allocation directory for the passed allocation,
fs displays either the contents of an allocation directory for the passed allocation,
or displays the file at the given path. The path is relative to the root of the alloc
dir and defaults to root if unspecified.
General Options:
General Options:
` + generalOptionsUsage() + `
Fs Options:
-H
Machine friendly output.
Expand Down Expand Up @@ -65,7 +63,7 @@ func (f *FSCommand) Run(args []string) int {
args = flags.Args()

if len(args) < 1 {
f.Ui.Error("allocation id is a required parameter")
f.Ui.Error("allocation id or -job is required")
return 1
}

Expand Down
6 changes: 3 additions & 3 deletions website/source/docs/commands/fs.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ client. The following functionalities are available - `cat`, `ls` and `stat`

`cat`: If the target path is a file, Nomad will cat the target path.
`ls`: If the target path is a directory, Nomad displays the name of a file and directories and their associated information.
`stat`: If the `-s` flag is used, Nomad will Display information about a file.
`stat`: If the `-stat` flag is used, Nomad will Display information about a file.

## Usage

```
nomad fs <alloc-id> <path>
nomad fs -s <alloc-id> <path>
nomad fs -stat <alloc-id> <path>
```

A valid allocation id is necessary unless `-job` is specified and the path is relative to the root of the allocation directory.
Expand All @@ -40,7 +40,7 @@ Mode Size Modfied Time Name
-rw-rw-rw- 17 28 Jan 16 05:39 UTC redis.stdout


$ nomad fs -s redis/local/redis.stdout
$ nomad fs -stat redis/local/redis.stdout
Mode Size Modified Time Name
-rw-rw-rw- 17 28 Jan 16 05:39 UTC redis.stdout

Expand Down

0 comments on commit c1ef910

Please sign in to comment.