Reorder command flag and add missing flags (#1394)

This commit is contained in:
Ta-Ching Chen
2019-11-10 14:58:29 +08:00
committed by GitHub
parent fcd1bc0356
commit 7b6e4318d4
16 changed files with 93 additions and 58 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ func (opts *CreateSubCommand) complete(input cli.Input) error {
triggerName := input.String(flagkey.HtName)
// just name triggers by uuid.
if triggerName == "" {
if len(triggerName) == 0 {
console.Warn(fmt.Sprintf("--%v will be soon marked as required flag, see 'help' for details", flagkey.HtName))
triggerName = uuid.NewV4().String()
}