-
Notifications
You must be signed in to change notification settings - Fork 0
Add -o flag for output file #60
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
base: main
Are you sure you want to change the base?
Add -o flag for output file #60
Conversation
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
main.go
Outdated
|
|
||
| if err := run(ctx, flag.Args()); err != nil { | ||
| // Setup output writer | ||
| var output *os.File |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot push this into the run func
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 834c9e4. Moved the output writer setup logic into the run function and simplified the error handling to return errors instead of calling os.Exit.
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
-oflag to accept output file path-ois specified-ois not specifiedOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.