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
0b6912e3
Commit
0b6912e3
authored
Dec 15, 2020
by
Marcin Rataj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: cleanup arg params
parent
1cb90d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
core/commands/pin/remotepin.go
core/commands/pin/remotepin.go
+7
-6
No files found.
core/commands/pin/remotepin.go
View file @
0b6912e3
...
...
@@ -56,8 +56,9 @@ const pinNameOptionName = "name"
const
pinCIDsOptionName
=
"cid"
const
pinStatusOptionName
=
"status"
const
pinServiceNameOptionName
=
"service"
const
pinServiceEndpointOptionName
=
"endpoint"
const
pinServiceKeyOptionName
=
"key"
const
pinServiceNameArgName
=
pinServiceNameOptionName
const
pinServiceEndpointArgName
=
"endpoint"
const
pinServiceKeyArgName
=
"key"
const
pinServiceStatOptionName
=
"stat"
const
pinBackgroundOptionName
=
"background"
const
pinForceOptionName
=
"force"
...
...
@@ -119,7 +120,7 @@ Status of background pin requests can be inspected with the 'ls' command:
},
Arguments
:
[]
cmds
.
Argument
{
cmds
.
StringArg
(
"ipfs-path
-or-cid
"
,
true
,
false
,
"Path to object(s) to be pinned."
),
cmds
.
StringArg
(
"ipfs-path"
,
true
,
false
,
"Path to object(s) to be pinned."
),
},
Options
:
[]
cmds
.
Option
{
pinServiceNameOption
,
...
...
@@ -421,9 +422,9 @@ TIP:
`
,
},
Arguments
:
[]
cmds
.
Argument
{
cmds
.
StringArg
(
pinServiceName
Option
Name
,
true
,
false
,
"Service name."
),
cmds
.
StringArg
(
pinServiceEndpoint
Option
Name
,
true
,
false
,
"Service endpoint."
),
cmds
.
StringArg
(
pinServiceKey
Option
Name
,
true
,
false
,
"Service key."
),
cmds
.
StringArg
(
pinServiceName
Arg
Name
,
true
,
false
,
"Service name."
),
cmds
.
StringArg
(
pinServiceEndpoint
Arg
Name
,
true
,
false
,
"Service endpoint."
),
cmds
.
StringArg
(
pinServiceKey
Arg
Name
,
true
,
false
,
"Service key."
),
},
Type
:
nil
,
Run
:
func
(
req
*
cmds
.
Request
,
res
cmds
.
ResponseEmitter
,
env
cmds
.
Environment
)
error
{
...
...
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