File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ mod database;
2828#[ command( version, about, long_about = None ) ]
2929struct Args {
3030 #[ command( subcommand) ]
31- pub command : Option < Commands > ,
31+ pub command : Commands ,
3232
3333 /// Path to the cli configuration file
3434 #[ arg( short, long) ]
@@ -165,13 +165,6 @@ async fn main() -> eyre::Result<()> {
165165
166166 let args = Args :: parse ( ) ;
167167
168- let command = match args. command {
169- Some ( command) => command,
170- None => {
171- return Err ( eyre:: eyre!( "please specify a command" ) ) ;
172- }
173- } ;
174-
175168 // Load the create tenant config
176169 let config_raw = tokio:: fs:: read ( args. config ) . await ?;
177170 let config: CliConfiguration =
@@ -217,7 +210,7 @@ async fn main() -> eyre::Result<()> {
217210 }
218211 } ;
219212
220- match command {
213+ match args . command {
221214 Commands :: CreateRoot => {
222215 docbox_management:: root:: initialize:: initialize (
223216 & db_provider,
You can’t perform that action at this time.
0 commit comments