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

Feature: Display Full Command Line Data When the Exit Function in ExecutionContext is Called #70

Open
kcq opened this issue Oct 27, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kcq
Copy link
Contributor

kcq commented Oct 27, 2024

One of the first questions to ask when Mint fails is, "How did you run it? What are all CLI parameters you specified?". The goal for this feature is to output this information to the screen before the CLI exits, so when users copy and paste the error information they'll also copy this information too.

Need to enhance ExecutionContext (https://github.com/mintoolkit/mint/blob/master/pkg/app/execontext.go) to accept an extra parameter when execution contexts get created. This parameter needs to hold the CLI arguments passed to the application. This information can be extracted from the urfave CLI library context: ctx.Args(). Alternatively it can be extracted using the standard Go way using os.Args.

Also need to enhance (ref *ExecutionContext) exit(exitCode int) to display the CLI command line in addition to what's already displayed there.

@kcq kcq added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant