pub enum Commands {
Show 14 variants
Register {
repo_path: PathBuf,
},
Unregister {
repo_path: PathBuf,
},
List {
stats: bool,
},
Events,
Status {
repo_path: PathBuf,
},
Changed {
repo_path: PathBuf,
since: Option<u64>,
},
Logs {
repo_path: PathBuf,
follow: bool,
limit: usize,
},
FsmonitorHelper {
version: u8,
token: Option<String>,
repo: Option<PathBuf>,
},
Prefetch {
repo_path: PathBuf,
now: bool,
},
Maintain {
repo_path: PathBuf,
},
Health {
repo_path: PathBuf,
},
Tray,
Daemon(DaemonCommands),
Db(DbCommands),
}Variants§
Register
Register a repository with the daemon.
Unregister
Remove a repository from the daemon.
List
List registered repositories.
Events
Stream daemon notifications (e.g., watcher events).
Status
Display cached status for a repository.
Changed
List files changed since a generation token.
Logs
Print daemon logs for a repository.
FsmonitorHelper
Git fsmonitor helper entrypoint (invoked by core.fsmonitor).
Prefetch
Trigger background prefetch for a repository.
Maintain
Force maintenance tasks (commit-graph, GC) for a repository.
Health
Run health diagnostics for a repository.
Tray
Launch the system tray UI.
Daemon(DaemonCommands)
Talk to the daemon control plane.
Db(DbCommands)
Database maintenance operations.
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
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 Commands
impl Subcommand for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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