Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 7, 2024. It is now read-only.

Commit 12af5fd

Browse files
committed
add stubs for new commands contest and fun (which may or may not be changed/removed)
1 parent 78fbba6 commit 12af5fd

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎src/cli.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
use crate::{
33
cmds::{
44
Command, DataCommand, EditCommand, ExecCommand, ListCommand, PickCommand, StatCommand,
5-
TestCommand,
5+
TestCommand,ContestCommand,FunCommand
66
},
77
err::Error,
88
flag::{Debug, Flag},
@@ -36,6 +36,8 @@ pub async fn main() -> Result<(), Error> {
3636
PickCommand::usage().display_order(5),
3737
StatCommand::usage().display_order(6),
3838
TestCommand::usage().display_order(7),
39+
ContestCommand::usage().display_order(8),
40+
FunCommand::usage().display_order(9),
3941
])
4042
.arg(Debug::usage())
4143
.setting(AppSettings::ArgRequiredElseHelp)
@@ -57,6 +59,8 @@ pub async fn main() -> Result<(), Error> {
5759
("pick", Some(sub_m)) => Ok(PickCommand::handler(sub_m).await?),
5860
("stat", Some(sub_m)) => Ok(StatCommand::handler(sub_m).await?),
5961
("test", Some(sub_m)) => Ok(TestCommand::handler(sub_m).await?),
62+
("contest", Some(sub_m)) => Ok(ContestCommand::handler(sub_m).await?),
63+
("fun", Some(sub_m)) => Ok(FunCommand::handler(sub_m).await?),
6064
_ => Err(Error::MatchError),
6165
}
6266
}

‎src/cmds/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ mod list;
3131
mod pick;
3232
mod stat;
3333
mod test;
34+
mod contest;
35+
mod fun;
3436
pub use data::DataCommand;
3537
pub use edit::EditCommand;
3638
pub use exec::ExecCommand;
3739
pub use list::ListCommand;
3840
pub use pick::PickCommand;
3941
pub use stat::StatCommand;
4042
pub use test::TestCommand;
43+
pub use contest::ContestCommand;
44+
pub use fun::FunCommand;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /