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
4cadbc16
Commit
4cadbc16
authored
Nov 16, 2014
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style rename for clarity
License: MIT Signed-off-by:
Brian Tiger Chow
<
brian@perfmode.com
>
parent
15f850f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cmd/ipfs2/main.go
cmd/ipfs2/main.go
+3
-3
No files found.
cmd/ipfs2/main.go
View file @
4cadbc16
...
...
@@ -206,12 +206,12 @@ func (i *cmdInvocation) requestedHelp() (short bool, long bool, err error) {
return
longHelp
,
shortHelp
,
nil
}
func
callPreCommandHooks
(
details
cmdDetails
,
req
cmds
.
Request
,
root
*
cmds
.
Command
)
error
{
func
callPreCommandHooks
(
command
cmdDetails
,
req
cmds
.
Request
,
root
*
cmds
.
Command
)
error
{
log
.
Debug
(
"Calling pre-command hooks..."
)
// some hooks only run when the command is executed locally
daemon
,
err
:=
commandShouldRunOnDaemon
(
details
,
req
,
root
)
daemon
,
err
:=
commandShouldRunOnDaemon
(
command
,
req
,
root
)
if
err
!=
nil
{
return
err
}
...
...
@@ -219,7 +219,7 @@ func callPreCommandHooks(details cmdDetails, req cmds.Request, root *cmds.Comman
// check for updates when 1) commands is going to be run locally, 2) the
// command does not initialize the config, and 3) the command does not
// pre-empt updates
if
!
daemon
&&
details
.
usesConfigAsInput
()
&&
details
.
doesNotPreemptAutoUpdate
()
{
if
!
daemon
&&
command
.
usesConfigAsInput
()
&&
command
.
doesNotPreemptAutoUpdate
()
{
log
.
Debug
(
"Calling hook: Check for updates"
)
...
...
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