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-unixfs
Commits
e41f861f
Commit
e41f861f
authored
Nov 12, 2014
by
Matt Bell
Committed by
Juan Batiz-Benet
Nov 14, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands/cli: Added some TODOs to Parse
parent
092524fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
commands/cli/parse.go
commands/cli/parse.go
+2
-0
No files found.
commands/cli/parse.go
View file @
e41f861f
...
...
@@ -13,6 +13,8 @@ import (
// returns the corresponding command Request object.
// Multiple root commands are supported:
// Parse will search each root to find the one that best matches the requested subcommand.
// TODO: get rid of extraneous return values (e.g. we ended up not needing the root value anymore)
// TODO: get rid of multiple-root support, we should only need one now
func
Parse
(
input
[]
string
,
roots
...*
cmds
.
Command
)
(
cmds
.
Request
,
*
cmds
.
Command
,
*
cmds
.
Command
,
[]
string
,
error
)
{
var
root
,
cmd
*
cmds
.
Command
var
path
,
stringArgs
[]
string
...
...
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