Closed mosmartin closed 6 months ago
Merging #9169 (f92b2c5) into release/6.1.0 (f641009) will decrease coverage by
0.01%
. The diff coverage is93.22%
.:exclamation: Current head f92b2c5 differs from pull request most recent head 4500f0b. Consider uploading reports for the commit 4500f0b to get more accurate results
What was the problem?
This PR resolves #9090
How was it solved?
Created the
handleOutputFlag
utility function. With this utiliy, it's now possible to generate output files with following commands./bin/run generator export
will generate a file with the default namespace name in thecwd
../bin/run generator export --output .
will generate a file with the default namespace name in thecwd
../bin/run generator export --output ./
will generate a file with the default namespace name in thecwd
../bin/run generator export --output test.json
will generate the file with the provided filename in thecwd
../bin/run generator export --output ~
will generate a file with the default namespace name in the user home dir../bin/run generator export --output ~/Desktop/
will generate a file with the default namespace name in the user desktop../bin/run generator export --output exports
will generate a file with the default namespace name in the defined dir (exports
) incwd
./bin/run generator export --output /Users/johndoe/Public/test.json
will generate thetest.json
file in the defined pathHow was it tested?
Updated and added new tests