No cnm_dir is defined for the cases in which CNM message content is written to file(s) as well as posted to a Kinesis stream. (We assume cnm exists as a directory in local_output_dir). Modify the .ini file content to look something like:
The user could be prompted for an output directory base name which is then glued onto the directory-only answers received for ummg_dir and cnm_dir -- or we could simply expect operators to type the whole path for each of ummg_dir and cnm_dir. Some input from @afitzgerrell is needed to verify the approach most useful for Ops.
Acceptance criteria:
Given: Interactive command-line option to quiz user for config file values
When: User runs metgenc --init
Then: The user is quizzed for output file locations according to Ops feedback, and the resulting .ini file has an entry for ummg_dir and cnm_dir but NOT local_output_dir.
Note that cnm_dir would only be required if the user wants to write CNM files in addition to posting the content (that is, if write_cnm_file is True).
Currently the
.ini
files include a local output directory value and aummg_dir
value representing a subdirectory inlocal_output_dir
. For example:No
cnm_dir
is defined for the cases in which CNM message content is written to file(s) as well as posted to a Kinesis stream. (We assumecnm
exists as a directory inlocal_output_dir
). Modify the.ini
file content to look something like:The user could be prompted for an output directory base name which is then glued onto the directory-only answers received for
ummg_dir
andcnm_dir
-- or we could simply expect operators to type the whole path for each ofummg_dir
andcnm_dir
. Some input from @afitzgerrell is needed to verify the approach most useful for Ops.Acceptance criteria: Given: Interactive command-line option to quiz user for config file values When: User runs
metgenc --init
Then: The user is quizzed for output file locations according to Ops feedback, and the resulting.ini
file has an entry forummg_dir
andcnm_dir
but NOTlocal_output_dir
.Note that
cnm_dir
would only be required if the user wants to write CNM files in addition to posting the content (that is, ifwrite_cnm_file
isTrue
).