Skip to content

enhancement(cli): Adds optional file output to generate subcommand #4819

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

Merged
merged 1 commit into from
Nov 3, 2020

Conversation

eeyun
Copy link
Contributor

@eeyun eeyun commented Oct 30, 2020

Closes #3013

This PR should be straightforward. Not entirely confident on team patterns just yet but we effectively now take an extra argument for the generate subcommand of a filepath and we write the config to that location. It's a pretty dumb implementation. We check if the file already exists and pass an error if so. If its a directory path we create the directories assuming the user has the permissions to do so.

Signed-off-by: Ian Henry [email protected]

@eeyun eeyun changed the title enhancement(generator): Adds optional file output enhancement(cli generator): Adds optional file output Oct 30, 2020
@eeyun eeyun force-pushed the eeyun/gen_output_file branch from 2f2f567 to 35d7bf2 Compare October 30, 2020 21:19
@eeyun eeyun changed the title enhancement(cli generator): Adds optional file output enhancement(cli): Adds optional file output to generator Oct 30, 2020
@eeyun eeyun changed the title enhancement(cli): Adds optional file output to generator enhancement(cli): Adds optional file output to generate subcommand Oct 30, 2020
@eeyun eeyun force-pushed the eeyun/gen_output_file branch 2 times, most recently from f65d3e0 to da01010 Compare November 2, 2020 15:46
@eeyun eeyun requested a review from Hoverbear November 2, 2020 19:02
@Hoverbear Hoverbear added the domain: cli Anything related to Vector's CLI label Nov 2, 2020
@Hoverbear Hoverbear added this to the 2020-11-09: Augur of Dunlain milestone Nov 2, 2020
@eeyun eeyun force-pushed the eeyun/gen_output_file branch 2 times, most recently from c6ce0d8 to 07be056 Compare November 3, 2020 14:21
@eeyun eeyun requested a review from Hoverbear November 3, 2020 18:25
@eeyun eeyun merged commit 497c76d into master Nov 3, 2020
@eeyun eeyun deleted the eeyun/gen_output_file branch November 3, 2020 21:35
mengesb pushed a commit to jacobbraaten/vector that referenced this pull request Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain: cli Anything related to Vector's CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate command should have option to output to file
3 participants