File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44//! binding the command handlers to the public `SupervisorConfig` type.
55
66use clap:: { Parser , Subcommand } ;
7- use rust_config_tree:: {
8- cli:: { ConfigCommand , handle_config_command} ,
9- config:: load_config,
10- } ;
7+ use rust_config_tree:: cli:: { ConfigCommand , handle_config_command} ;
118use rust_supervisor:: config:: configurable:: SupervisorConfig ;
129use std:: path:: PathBuf ;
1310
@@ -62,7 +59,7 @@ fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
6259 match cli. command . unwrap_or ( Command :: Run { config : None } ) {
6360 Command :: Run { config } => {
6461 let config_path = config. unwrap_or ( default_config_path) ;
65- let config = load_config :: < SupervisorConfig > ( & config_path) ?;
62+ let config = rust_config_tree :: config :: load_config :: < SupervisorConfig > ( & config_path) ?;
6663 println ! ( "config path: {}" , config_path. display( ) ) ;
6764 println ! ( "strategy: {:?}" , config. supervisor. strategy) ;
6865 println ! ( "children: {}" , config. children. len( ) ) ;
You can’t perform that action at this time.
0 commit comments