Allow Changing the Config File Location #3

Closed
opened 2022-07-17 14:07:48 -04:00 by gballan · 1 comment
Owner

A command-line parameter should be added to allow the user to define where they want to store their configuration settings. This can be useful if someone chooses to do a user-install and wants to change where things are stored.

The default config file should also change to /etc/dragon/config.toml since this is intended to be run as a system service.

A command-line parameter should be added to allow the user to define where they want to store their configuration settings. This can be useful if someone chooses to do a user-install and wants to change where things are stored. The default config file should also change to `/etc/dragon/config.toml` since this is intended to be run as a system service.
Author
Owner

For v0.3.2 I implemented a CLI parsing class under config/Cmd to parse CLI parameters, and added a configFile parameter (set with -c or --configPath) to change the config file to load.

I used the Apache Commons CLI library to do this: https://commons.apache.org/proper/commons-cli/

For v0.3.2 I implemented a CLI parsing class under `config/Cmd` to parse CLI parameters, and added a configFile parameter (set with `-c` or `--configPath`) to change the config file to load. I used the Apache Commons CLI library to do this: https://commons.apache.org/proper/commons-cli/
gballan added the
enhancement
label 2022-07-17 14:09:37 -04:00
gballan added reference refs/tags/v0.3.2 2022-07-17 14:09:57 -04:00
gballan removed reference refs/tags/v0.3.2 2022-07-17 14:13:39 -04:00
gballan added reference refs/tags/v0.3.2 2022-07-17 14:17:07 -04:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: BitGoblin/dragoon#3
No description provided.