Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
a631d745
Commit
a631d745
authored
10 years ago
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(add) help
parent
aa1c3cae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
core/commands2/add.go
core/commands2/add.go
+9
-1
No files found.
core/commands2/add.go
View file @
a631d745
...
@@ -26,7 +26,15 @@ var addCmd = &cmds.Command{
...
@@ -26,7 +26,15 @@ var addCmd = &cmds.Command{
Arguments
:
[]
cmds
.
Argument
{
Arguments
:
[]
cmds
.
Argument
{
cmds
.
Argument
{
"file"
,
cmds
.
ArgFile
,
false
,
true
},
cmds
.
Argument
{
"file"
,
cmds
.
ArgFile
,
false
,
true
},
},
},
Help
:
"TODO"
,
// TODO UsageLine: "add",
// TODO Short: "Add an object to ipfs.",
Help
:
`ipfs add <path>... - Add objects to ipfs.
Adds contents of <path> 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.
`
,
Run
:
func
(
res
cmds
.
Response
,
req
cmds
.
Request
)
{
Run
:
func
(
res
cmds
.
Response
,
req
cmds
.
Request
)
{
n
:=
req
.
Context
()
.
Node
n
:=
req
.
Context
()
.
Node
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment