pub enum ThemeCommand {
List {
discourse: String,
format: ListFormat,
verbose: bool,
},
Install {
discourse: String,
url: String,
},
Remove {
discourse: String,
name: String,
},
Pull {
discourse: String,
theme_id: u64,
local_path: Option<PathBuf>,
},
Push {
discourse: String,
local_path: PathBuf,
theme_id: Option<u64>,
},
Duplicate {
discourse: String,
theme_id: u64,
},
}Variants§
List
List installed themes.
Fields
§
format: ListFormatOutput format.
Install
Install a theme from URL.
Remove
Remove a theme by name.
Pull
Pull a theme to a local JSON file.
Fields
Push
Push a local JSON file to create or update a theme.
Fields
Duplicate
Duplicate a theme and print the new theme ID.
Trait Implementations§
Source§impl FromArgMatches for ThemeCommand
impl FromArgMatches for ThemeCommand
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 ThemeCommand
impl Subcommand for ThemeCommand
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 ThemeCommand
impl RefUnwindSafe for ThemeCommand
impl Send for ThemeCommand
impl Sync for ThemeCommand
impl Unpin for ThemeCommand
impl UnsafeUnpin for ThemeCommand
impl UnwindSafe for ThemeCommand
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