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
10160119
Commit
10160119
authored
Nov 07, 2014
by
Brian Tiger Chow
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(pin) help
parent
3dcae0e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
core/commands2/pin.go
core/commands2/pin.go
+18
-0
No files found.
core/commands2/pin.go
View file @
10160119
...
@@ -10,6 +10,10 @@ import (
...
@@ -10,6 +10,10 @@ import (
)
)
var
pinCmd
=
&
cmds
.
Command
{
var
pinCmd
=
&
cmds
.
Command
{
// TODO UsageLine: "pin",
// TODO Short: "",
Help
:
`ipfs pin [add|rm] - object pinning commands
`
,
Subcommands
:
map
[
string
]
*
cmds
.
Command
{
Subcommands
:
map
[
string
]
*
cmds
.
Command
{
"add"
:
addPinCmd
,
"add"
:
addPinCmd
,
"rm"
:
rmPinCmd
,
"rm"
:
rmPinCmd
,
...
@@ -17,6 +21,13 @@ var pinCmd = &cmds.Command{
...
@@ -17,6 +21,13 @@ var pinCmd = &cmds.Command{
}
}
var
addPinCmd
=
&
cmds
.
Command
{
var
addPinCmd
=
&
cmds
.
Command
{
// TODO UsageLine: "add",
// TODO Short: "pin an ipfs object to local storage.",
Help
:
`ipfs pin add <ipfs-path> - pin ipfs object to local storage.
Retrieves the object named by <ipfs-path> and stores it locally
on disk.
`
,
Options
:
[]
cmds
.
Option
{
Options
:
[]
cmds
.
Option
{
cmds
.
Option
{[]
string
{
"recursive"
,
"r"
},
cmds
.
Bool
},
cmds
.
Option
{[]
string
{
"recursive"
,
"r"
},
cmds
.
Bool
},
cmds
.
Option
{[]
string
{
"depth"
,
"d"
},
cmds
.
Uint
},
cmds
.
Option
{[]
string
{
"depth"
,
"d"
},
cmds
.
Uint
},
...
@@ -47,6 +58,13 @@ var addPinCmd = &cmds.Command{
...
@@ -47,6 +58,13 @@ var addPinCmd = &cmds.Command{
}
}
var
rmPinCmd
=
&
cmds
.
Command
{
var
rmPinCmd
=
&
cmds
.
Command
{
// TODO UsageLine: "rm",
// TODO Short: "unpin an ipfs object from local storage.",
Help
:
`ipfs pin rm <ipfs-path> - unpin ipfs object from local storage.
Removes the pin from the given object allowing it to be garbage
collected if needed.
`
,
Options
:
[]
cmds
.
Option
{
Options
:
[]
cmds
.
Option
{
cmds
.
Option
{[]
string
{
"recursive"
,
"r"
},
cmds
.
Bool
},
cmds
.
Option
{[]
string
{
"recursive"
,
"r"
},
cmds
.
Bool
},
},
},
...
...
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