Closes #58 Fix handling of global flags in scope definition
Previously the presence of global flags in a command like `br --flag app a ent b sensor c` caused the CLI to run the command for app, not sensor. Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/7ec86f49 Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/7ec86f49 Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/7ec86f49 Branch: refs/heads/master Commit: 7ec86f4942f3be67a15286a0efc12bd4c6b68c9d Parents: 3dc6921 a436dc0 Author: Geoff Macartney <[email protected]> Authored: Fri Jul 28 15:30:10 2017 +0100 Committer: Geoff Macartney <[email protected]> Committed: Fri Jul 28 15:30:10 2017 +0100 ---------------------------------------------------------------------- cli/api/catalog/catalog.go | 2 +- cli/commands/activity.go | 2 +- cli/scope/scope.go | 41 ++++++++---------- cli/scope/scope_test.go | 92 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 111 insertions(+), 26 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/7ec86f49/cli/api/catalog/catalog.go ----------------------------------------------------------------------
