-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Cargo.toml to generate clap command
- Loading branch information
Showing
2 changed files
with
3 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ use std::io::{self, Read, Write}; | |
mod builders; | ||
mod commands; | ||
|
||
use commands::{build::*, pins::*, tasks::*, workers::*, sudo::*}; | ||
use commands::{build::*, pins::*, sudo::*, tasks::*, workers::*}; | ||
|
||
/// Main entry point for the Gevulot Control CLI application. | ||
/// | ||
|
@@ -124,10 +124,7 @@ fn setup_command_line_args() -> Result<Command, Box<dyn std::error::Error>> { | |
.action(ArgAction::Set), | ||
]; | ||
|
||
Ok(Command::new("gvltctl") | ||
.version("1.0") | ||
.author("Author Name <[email protected]>") | ||
.about("Gevulot Control CLI") | ||
Ok(clap::command!() | ||
.subcommand_required(true) | ||
// Worker subcommand | ||
.subcommand( | ||
|