-
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.
- Loading branch information
Showing
5 changed files
with
26 additions
and
10 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
use clap::{command, Parser}; | ||
use clap::{command, crate_authors, crate_name, crate_version, Parser}; | ||
use snm_command::SnmCommands; | ||
|
||
pub mod fig; | ||
|
@@ -8,11 +8,11 @@ pub mod snm_command; | |
pub mod execute_cli; | ||
|
||
#[derive(Parser, Debug)] | ||
#[clap( | ||
name = "snm", | ||
version = "1.0.0", | ||
author = "Author ityuany <[email protected]>" | ||
)] | ||
#[command( | ||
name = crate_name!(), | ||
author = crate_authors!(), | ||
version = crate_version!(), | ||
about = "snm = ni + fnm + corepack")] | ||
pub struct SnmCli { | ||
#[command(subcommand)] | ||
pub command: SnmCommands, | ||
|
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
build: | ||
echo "Building the project..." | ||
cargo b | ||
|
||
dev: | ||
echo "Running the project..." | ||
cargo watch -x build | ||
|
||
test: | ||
echo "Running tests..." | ||
cargo t | ||
|