Make get subcommand debug-build only
This commit is contained in:
parent
762ea09b56
commit
3cae13d310
@ -22,6 +22,7 @@ pub enum Subcommand {
|
||||
Init(InitOpt),
|
||||
Api(ApiOpt),
|
||||
Nick(NickOpt),
|
||||
#[cfg(debug_assertions)]
|
||||
Get(GetOpt),
|
||||
}
|
||||
|
||||
|
@ -77,6 +77,8 @@ fn from_env(env: EnvOpt) -> Result<(), GenericError> {
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
Subcommand::Get(opt) => {
|
||||
let config = Config::from_path(&env.config)?;
|
||||
let api = API::new(config.clone());
|
||||
|
Loading…
Reference in New Issue
Block a user