-
Notifications
You must be signed in to change notification settings - Fork 188
*: support sourceID on operate-source stop #855
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
dm/ctl/master/operate_source.go
Outdated
// the leading space could provide more friendly terminal printing | ||
// cobra.Command doesn't support multi-line usage well | ||
Use: `operate-source create|update [config-file ...] [--print-sample-config] [flags] | ||
operate-source stop [config-file | sourceID ...] [--print-sample-config] [flags] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--print-sample-config cannot work with create/update/stop at the same time. But change to print-sample-config looks strange. 😖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems --print-sample-config
will overwrite the running of create/update/stop/show, I guess user will only use --print-sample-config
when they don't know how to write a config file (thus they can't do a right source operation), so it's not confusing.
going to change usage to
operate-source <operate-type> [config-file ...] [--print-sample-config]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What problem does this PR solve?
part of #826
What is changed and how it works?
support sourceID on operate-source stop
Check List
Tests
Code changes
Side effects
Related changes