pub enum CtfCommand {
Auth {
command: CtfAuthCommand,
},
Events {
all: bool,
},
Info {
slug: String,
},
Challenges {
event_id: u64,
difficulty: Option<String>,
},
Submit {
challenge_id: u64,
flag: String,
},
Download {
event_id: u64,
challenge_id: u64,
},
Start {
event_id: u64,
challenge_id: u64,
},
Stop {
event_id: u64,
challenge_id: u64,
},
Scoreboard {
event_id: u64,
},
Solves {
event_id: u64,
},
ChallengeSolves {
challenge_id: u64,
},
}Variants§
Auth
Manage CTF authentication
Fields
§
command: CtfAuthCommandEvents
List CTF events
Info
Show CTF event details
Challenges
List challenges in a CTF event
Submit
Submit a flag
Download
Download challenge files
Start
Start a challenge container
Stop
Stop a challenge container
Scoreboard
Show event scoreboard
Solves
Show recent solves for an event
ChallengeSolves
Show solves for a specific challenge
Trait Implementations§
Source§impl FromArgMatches for CtfCommand
impl FromArgMatches for CtfCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for CtfCommand
impl Subcommand for CtfCommand
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for CtfCommand
impl RefUnwindSafe for CtfCommand
impl Send for CtfCommand
impl Sync for CtfCommand
impl Unpin for CtfCommand
impl UnsafeUnpin for CtfCommand
impl UnwindSafe for CtfCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more