pub enum ProfileAction {
List,
Delete {
id: String,
},
Save {
name: String,
tab: Vec<String>,
color: String,
from_session: Option<String>,
},
AddTab {
profile: String,
name: String,
cwd: String,
command: Option<String>,
},
Show {
id: String,
},
Edit {
id: String,
},
Update {
id: String,
name: Option<String>,
color: Option<String>,
},
RemoveTab {
profile: String,
tab: String,
},
}Expand description
Profile subcommands.
Variants§
List
List all profiles
Delete
Delete a profile
Save
Save a new profile (or snapshot a running session with –from-session)
Fields
AddTab
Add a tab to an existing profile
Fields
Show
Show a profile’s full definition
Edit
Edit a profile in $EDITOR
Update
Update profile fields inline
Fields
RemoveTab
Remove a tab from a profile
Trait Implementations§
Source§impl FromArgMatches for ProfileAction
impl FromArgMatches for ProfileAction
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 ProfileAction
impl Subcommand for ProfileAction
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 ProfileAction
impl RefUnwindSafe for ProfileAction
impl Send for ProfileAction
impl Sync for ProfileAction
impl Unpin for ProfileAction
impl UnsafeUnpin for ProfileAction
impl UnwindSafe for ProfileAction
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