pub struct AddArgs {Show 16 fields
pub path: PathBuf,
pub branch: Option<String>,
pub new_branch: Option<String>,
pub force_branch: Option<String>,
pub detach: bool,
pub lock: bool,
pub track: bool,
pub no_track: bool,
pub guess_remote: bool,
pub no_guess_remote: bool,
pub no_checkout: bool,
pub quiet: bool,
pub config: Option<PathBuf>,
pub print_path: bool,
pub cd_command: bool,
pub git_only: bool,
}Expand description
addコマンドの引数(git worktree addと互換)
Fields§
§path: PathBufワークツリーのパス
branch: Option<String>ブランチ名またはコミット(省略時はパスから推測)
new_branch: Option<String>新しいブランチを作成
force_branch: Option<String>新しいブランチを強制的に作成
detach: boolデタッチモード
lock: boolロックする
track: bool追跡モードを設定
no_track: bool追跡モードを無効
guess_remote: boolリモートブランチを推測
no_guess_remote: boolリモートブランチを推測しない
no_checkout: boolチェックアウトしない
quiet: boolquietモード
config: Option<PathBuf>twin固有: 設定ファイルのパス
print_path: booltwin固有: 作成後にパスを表示
cd_command: booltwin固有: 作成後にcdコマンドを表示
git_only: booltwin固有: 副作用をスキップしてgit worktreeのみ実行
Trait Implementations§
Source§impl Args for AddArgs
impl Args for AddArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for AddArgs
impl CommandFactory for AddArgs
Source§impl FromArgMatches for AddArgs
impl FromArgMatches for AddArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for AddArgs
impl Parser for AddArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for AddArgs
impl RefUnwindSafe for AddArgs
impl Send for AddArgs
impl Sync for AddArgs
impl Unpin for AddArgs
impl UnwindSafe for AddArgs
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