Add output dir and file option
User Story:
As a user I want to be able to pass the output directory / file of the generated code as an option
Definition of Done:
-
The output directory can be provided to the cli command
-
Resulting code will be saved in a file in the provided directory
-
An invalid directory will result in program abort with descriptive error message
-
Standard cli help exists for the option
-
The filename can be provided to the cli command
-
Resulting code will be saved to a file with the given name
-
Standard behaviour for existing files is applied
Implementation Tasks:
-
Extend CLI command with '-o', '--out-dir' option -
Extend CLI command with '-f', '--file-name' option -
Pass provided argument to the responsible scripts -
Use provided option in logic to write resulting code
Storypoints | Requires |
---|---|
? | Write files |