mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-22 15:16:40 +11:00
Extract publish function to a new module
This commit is contained in:
parent
bf3021c6d9
commit
9149cc046d
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,7 @@
|
|||
use clap::{command, Parser};
|
||||
|
||||
mod publish;
|
||||
|
||||
#[derive(Parser, Debug)]
|
||||
struct PublishAllCratesArgs {}
|
||||
|
||||
|
@ -12,11 +14,7 @@ fn main() {
|
|||
.get_matches();
|
||||
|
||||
match matches.subcommand() {
|
||||
Some(("publish", _)) => publish(),
|
||||
Some(("publish", _)) => publish::publish(),
|
||||
_ => unreachable!("Exhausted list of subcommands and subcommand_required prevents `None`"),
|
||||
}
|
||||
}
|
||||
|
||||
fn publish() {
|
||||
println!("publishing!");
|
||||
}
|
||||
|
|
3
tools/src/publish.rs
Normal file
3
tools/src/publish.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
pub fn publish() {
|
||||
println!("Publish!");
|
||||
}
|
Loading…
Add table
Reference in a new issue