Skip to content
Snippets Groups Projects

Resolve "durs-core: load conf from environment variables as a priority"

9 unresolved threads
Files
7
@@ -57,6 +57,9 @@ pub struct DursCliOpt {
/// Set a custom user profile name
#[structopt(short = "p", long = "profile-name")]
profile_name: Option<String>,
/// Set environment variable prefix
#[structopt(long = "env-prefix")]
env_prefix: Option<String>,
}
impl ExecutableModuleCommand for DursCliOpt {
@@ -85,6 +88,7 @@ impl DursCliOpt {
log_stdout: self.log_stdout,
profile_name: self.profile_name.clone(),
profiles_path: self.profiles_path.clone(),
env_prefix: self.env_prefix.clone(),
};
match self.cmd {
Loading