mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
Signed-off-by: Samuel Cabrero <scabrero@suse.de>
This commit is contained in:
parent
bc341af9d8
commit
17741c4929
|
@ -29,6 +29,7 @@
|
||||||
- Minh Phan (MinhPhan8803)
|
- Minh Phan (MinhPhan8803)
|
||||||
- Kenton Groombridge (0xC0ncord)
|
- Kenton Groombridge (0xC0ncord)
|
||||||
- Martin Weinelt (hexa)
|
- Martin Weinelt (hexa)
|
||||||
|
- Samuel Cabrero (scabrero)
|
||||||
|
|
||||||
## Acknowledgements
|
## Acknowledgements
|
||||||
|
|
||||||
|
|
|
@ -156,6 +156,12 @@ async fn main() -> ExitCode {
|
||||||
// Read CLI args, determine what the user has asked us to do.
|
// Read CLI args, determine what the user has asked us to do.
|
||||||
let opt = KanidmdParser::parse();
|
let opt = KanidmdParser::parse();
|
||||||
|
|
||||||
|
// print the app version and bail
|
||||||
|
if let KanidmdOpt::Version(_) = &opt.commands {
|
||||||
|
println!("kanidmd {}", env!("KANIDM_PKG_VERSION"));
|
||||||
|
return ExitCode::SUCCESS;
|
||||||
|
};
|
||||||
|
|
||||||
//we set up a list of these so we can set the log config THEN log out the errors.
|
//we set up a list of these so we can set the log config THEN log out the errors.
|
||||||
let mut config_error: Vec<String> = Vec::new();
|
let mut config_error: Vec<String> = Vec::new();
|
||||||
let mut config = Configuration::new();
|
let mut config = Configuration::new();
|
||||||
|
@ -244,12 +250,6 @@ async fn main() -> ExitCode {
|
||||||
(cuid, ceuid)
|
(cuid, ceuid)
|
||||||
};
|
};
|
||||||
|
|
||||||
// print the app version and bail
|
|
||||||
if let KanidmdOpt::Version(_) = &opt.commands {
|
|
||||||
println!("kanidmd {}", env!("KANIDM_PKG_VERSION"));
|
|
||||||
return ExitCode::SUCCESS
|
|
||||||
};
|
|
||||||
|
|
||||||
let sconfig = match sconfig {
|
let sconfig = match sconfig {
|
||||||
Some(val) => val,
|
Some(val) => val,
|
||||||
None => {
|
None => {
|
||||||
|
|
Loading…
Reference in a new issue