-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli [OPTION] -flagA arg0 -flagB arg1 -flagC arg2 #1104
Comments
If If If the question is about how to pass the same flags to every command, there's two options:
flags := []cli.Flag{
// ...
}
app := cli.NewApp()
app.Commands = []*cli.Command{
{
Name: "cmd1",
Flags: flags,
// ...
},
{
Name: "cmd2",
Flags: flags,
// ...
},
}
app := cli.NewApp()
app.Flags = []cli.Flag{
// ...
} Let me know if that doesn't answer your question. |
thanks my bro |
This issue or PR has been automatically marked as stale because it has not had recent activity. Please add a comment bumping this if you're still interested in it's resolution! Thanks for your help, please let us know if you need anything else. |
Closing this as it has become stale. |
I think (?) this is resolved? @hnistlzy Please let us know if this should be reopened if that's not the case 😁 |
When the wait flag is supplied to run-task, the cli will not exit until the task enters a terminal state; SUCCEEDED or FAILED. The cli exits 0 when the task succeeds and exits 1 when the task fails. This improves the scriptability of tasks. They can be run serially in a script. Cherry-pick of 8671a5b (urfave#1861) to v8 Addresses Issue urfave#1104, #2238 Authored-by: Zach Robinson <zrobinson@pivotal.io> Co-authored-by: Stephan Merker <merker.stephan@gmail.com>
How to achieve such a program just like “cli [OPTION] -flagA arg0 -flagB arg1 -flagC arg2”
The text was updated successfully, but these errors were encountered: