Merge lp:~thumper/juju-core/support-string-slice-args into lp:~go-bot/juju-core/trunk
Proposed by
Tim Penhey
Status: | Merged |
---|---|
Approved by: | Tim Penhey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2166 |
Proposed branch: | lp:~thumper/juju-core/support-string-slice-args |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
196 lines (+187/-0) 2 files modified
cmd/args.go (+36/-0) cmd/args_test.go (+151/-0) |
To merge this branch: | bzr merge lp:~thumper/juju-core/support-string-slice-args |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+199576@code.launchpad.net |
Commit message
Add gnuflag support for []string
Add a StringsValue type for gnuflag parsing.
This allows comma separated values to be used as a single arg, and they are
split up into the []string passed in to the NewStringsValue function.
Description of the change
Add gnuflag support for []string
Add a StringsValue type for gnuflag parsing.
This allows comma separated values to be used as a single arg, and they are
split up into the []string passed in to the NewStringsValue function.
To post a comment you must log in.
Reviewers: mp+199576_ code.launchpad. net,
Message:
Please take a look.
Description:
Add gnuflag support for []string
Add a StringsValue type for gnuflag parsing.
This allows comma separated values to be used as a single arg, and they
are
split up into the []string passed in to the NewStringsValue function.
https:/ /code.launchpad .net/~thumper/ juju-core/ support- string- slice-args/ +merge/ 199576
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/39150045/
Affected files (+157, -0 lines):
A [revision details]
A cmd/args.go
A cmd/args_test.go