mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 16:21:33 +11:00
Extract publish function to a new module
This commit is contained in:
parent
bf3021c6d9
commit
9149cc046d
|
@ -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…
Reference in a new issue