@@ -12,11 +12,11 @@ pub mod render;
1212
1313#[ tokio:: main]
1414async fn main ( ) -> Result < ( ) , Box < dyn std:: error:: Error > > {
15- let cmd = crate :: args:: ClapArgumentLoader :: load_from_cli ( ) . await ?;
15+ let cmd = args:: ClapArgumentLoader :: load ( ) . await ?;
1616 cmd. validate ( ) . await ?;
1717
1818 match cmd. command {
19- | crate :: args:: Command :: Manual { path, format } => {
19+ | args:: Command :: Manual { path, format } => {
2020 let out_path = PathBuf :: from ( path) ;
2121 std:: fs:: create_dir_all ( & out_path) ?;
2222 match format {
@@ -29,19 +29,19 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
2929 }
3030 Ok ( ( ) )
3131 } ,
32- | crate :: args:: Command :: Autocomplete { path, shell } => {
32+ | args:: Command :: Autocomplete { path, shell } => {
3333 let out_path = PathBuf :: from ( path) ;
3434 std:: fs:: create_dir_all ( & out_path) ?;
3535 reference:: build_shell_completion ( & out_path, & shell) ?;
3636 Ok ( ( ) )
3737 } ,
38- | crate :: args:: Command :: Init => {
38+ | args:: Command :: Init => {
3939 std:: fs:: create_dir_all ( "./.complate" ) ?;
40- std:: fs:: write ( "./.complate/config.yaml" , crate :: config:: default_config ( ) . await ) ?;
40+ std:: fs:: write ( "./.complate/config.yaml" , config:: default_config ( ) . await ) ?;
4141 Ok ( ( ) )
4242 } ,
43- | crate :: args:: Command :: Render ( x) => {
44- let res = crate :: render:: select_and_render ( x) . await ?;
43+ | args:: Command :: Render ( x) => {
44+ let res = render:: select_and_render ( x) . await ?;
4545 std:: io:: stdout ( ) . write_all ( res. as_bytes ( ) ) ?;
4646 Ok ( ( ) )
4747 } ,
0 commit comments