Skip to content

Commit

Permalink
Merge pull request #3083 from dokterbob/lshelpdoc
Browse files Browse the repository at this point in the history
Document listing commands better
  • Loading branch information
whyrusleeping authored Aug 16, 2016
2 parents 8c237ce + 0aad342 commit 1891fd1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/commands/files/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ type FilesLsOutput struct {

var FilesLsCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "List directories.",
Tagline: "List directories in the local mutable namespace.",
ShortDescription: `
List directories.
List directories in the local mutable namespace.
Examples:
Expand Down
8 changes: 5 additions & 3 deletions core/commands/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ type LsOutput struct {

var LsCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "List links from an object.",
Tagline: "List directory contents for Unix filesystem objects.",
ShortDescription: `
Displays the links an IPFS or IPNS object(s) contains, with the following
format:
Displays the contents of an IPFS or IPNS object(s) at the given path, with
the following format:
<link base58 hash> <link size in bytes> <link name>
The JSON output contains type information.
`,
},

Expand Down
6 changes: 6 additions & 0 deletions core/commands/unixfs/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ Displays the contents of an IPFS or IPNS object(s) at the given path.
The JSON output contains size information. For files, the child size
is the total size of the file contents. For directories, the child
size is the IPFS link size.
This functionality is deprecated, and will be removed in future versions. If
possible, please use 'ipfs ls' instead.
`,
LongDescription: `
Displays the contents of an IPFS or IPNS object(s) at the given path.
Expand All @@ -59,6 +62,9 @@ Example:
cat.jpg
> ipfs file ls /ipfs/QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ
cat.jpg
This functionality is deprecated, and will be removed in future versions. If
possible, please use 'ipfs ls' instead.
`,
},

Expand Down

0 comments on commit 1891fd1

Please sign in to comment.