Skip to content
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.Run handle with error #3

Open
jiusanzhou opened this issue Aug 29, 2019 · 0 comments
Open

cli.Run handle with error #3

jiusanzhou opened this issue Aug 29, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jiusanzhou
Copy link
Owner

  • x.cli: add method for cli.Command
Command.RunWithErr(func() error {
  return nil
})

// if err is not nil, auto print error msg
@jiusanzhou jiusanzhou added the enhancement New feature or request label Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant