From 2df514c4f22bcef101104fb6cb4e5e17f3c58f95 Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 21 Jan 2016 12:45:47 +0100 Subject: [PATCH 1/3] Change object to file License: MIT Signed-off-by: Richard Littauer --- README.md | 2 +- core/commands/add.go | 2 +- core/commands/root.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9be5bc61106..86bc587246b 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ USAGE: BASIC COMMANDS init Initialize ipfs local configuration - add Add an object to ipfs + add Add a file to ipfs cat Show ipfs object data get Download ipfs objects ls List links from an object diff --git a/core/commands/add.go b/core/commands/add.go index 3690138e812..e05a871d717 100644 --- a/core/commands/add.go +++ b/core/commands/add.go @@ -30,7 +30,7 @@ const ( var AddCmd = &cmds.Command{ Helptext: cmds.HelpText{ - Tagline: "Add an object to ipfs.", + Tagline: "Add a file to ipfs.", ShortDescription: ` Adds contents of to ipfs. Use -r to add directories. Note that directories are added recursively, to form the ipfs diff --git a/core/commands/root.go b/core/commands/root.go index f0fb2eee172..a0d4c6e6449 100644 --- a/core/commands/root.go +++ b/core/commands/root.go @@ -32,7 +32,7 @@ ipfs [] [] ... BASIC COMMANDS init Initialize ipfs local configuration - add Add an object to ipfs + add Add a file to ipfs cat Show ipfs object data get Download ipfs objects ls List links from an object From 719c3693e204885f6c1351dce4175cd487e67a2c Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 21 Jan 2016 12:46:59 +0100 Subject: [PATCH 2/3] Remove unnecessary sentence License: MIT Signed-off-by: Richard Littauer --- core/commands/add.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/commands/add.go b/core/commands/add.go index e05a871d717..1bf244a49cf 100644 --- a/core/commands/add.go +++ b/core/commands/add.go @@ -34,8 +34,7 @@ var AddCmd = &cmds.Command{ ShortDescription: ` Adds contents of to ipfs. Use -r to add directories. Note that directories are added recursively, to form the ipfs -MerkleDAG. A smarter partial add with a staging area (like git) -remains to be implemented. +MerkleDAG. `, }, From 7a7a21bbd430031827e787ab4a21224cf03fcdea Mon Sep 17 00:00:00 2001 From: Richard Littauer Date: Thu, 21 Jan 2016 12:57:16 +0100 Subject: [PATCH 3/3] Add final periods, capitalize `Chunker` License: MIT Signed-off-by: Richard Littauer --- core/commands/add.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/commands/add.go b/core/commands/add.go index 1bf244a49cf..73b78c4947e 100644 --- a/core/commands/add.go +++ b/core/commands/add.go @@ -43,15 +43,15 @@ MerkleDAG. }, Options: []cmds.Option{ cmds.OptionRecursivePath, // a builtin option that allows recursive paths (-r, --recursive) - cmds.BoolOption(quietOptionName, "q", "Write minimal output"), - cmds.BoolOption(silentOptionName, "Write no output"), - cmds.BoolOption(progressOptionName, "p", "Stream progress data"), - cmds.BoolOption(trickleOptionName, "t", "Use trickle-dag format for dag generation"), - cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk"), - cmds.BoolOption(wrapOptionName, "w", "Wrap files with a directory object"), + cmds.BoolOption(quietOptionName, "q", "Write minimal output."), + cmds.BoolOption(silentOptionName, "Write no output."), + cmds.BoolOption(progressOptionName, "p", "Stream progress data."), + cmds.BoolOption(trickleOptionName, "t", "Use trickle-dag format for dag generation."), + cmds.BoolOption(onlyHashOptionName, "n", "Only chunk and hash - do not write to disk."), + cmds.BoolOption(wrapOptionName, "w", "Wrap files with a directory object."), cmds.BoolOption(hiddenOptionName, "H", "Include files that are hidden. Only takes effect on recursive add."), - cmds.StringOption(chunkerOptionName, "s", "chunking algorithm to use"), - cmds.BoolOption(pinOptionName, "Pin this object when adding. Default true"), + cmds.StringOption(chunkerOptionName, "s", "Chunking algorithm to use."), + cmds.BoolOption(pinOptionName, "Pin this object when adding. Default: true."), }, PreRun: func(req cmds.Request) error { if quiet, _, _ := req.Option(quietOptionName).Bool(); quiet {