Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Add --wait switch on riff function create #689

Closed
wants to merge 1 commit into from

Conversation

glyn
Copy link
Contributor

@glyn glyn commented Aug 23, 2018

Fixes #682

@glyn
Copy link
Contributor Author

glyn commented Aug 23, 2018

If this works out, we can do the same for other places where --verbose is supported.

@@ -188,6 +189,13 @@ From then on you can use the sub-commands for the 'service' command to interact
"verbose", "v", verboseUsage,
).NoOptDefVal = "true"

command.Flags().VarPF(
BroadcastBoolValue(false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A broadcast value only makes sense if it is applied to several variables. This can be simplified to a more traditional cobra flag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericbottard Fair enough, but I was copying the pattern employed elsewhere. I would prefer to raise an issue to apply the simplification throughout rather than "step out of line" in this PR.

@@ -137,6 +137,7 @@ From then on you can use the sub-commands for the 'service' command to interact
}
} else {
printSuccessfulCompletion(cmd)
fmt.Fprintf(cmd.OutOrStdout(), "Issue `riff service status %s` to see the status of the function\n", fnName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be printed only if not using --wait/--verbose?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ericbottard Yes. Good catch. Fixed via force push.

@ericbottard ericbottard self-assigned this Aug 28, 2018
@ericbottard
Copy link
Contributor

Merged as 491d109

@jldec jldec added this to the Current milestone Aug 28, 2018
@glyn glyn deleted the check branch August 28, 2018 11:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants