pub enum Command {
Show 15 variants
Init {
force: bool,
dry_run: bool,
},
Status,
Check {
path: Option<PathBuf>,
errors_only: bool,
},
Find(FindCommand),
List(ListCommand),
Read(ReadCommand),
Edit(EditCommand),
Daemon(DaemonCommand),
Hover {
name: String,
},
Format {
path: PathBuf,
},
Rename {
symbol: String,
new_name: String,
},
Fix {
path: Option<PathBuf>,
},
Watch {
path: Option<PathBuf>,
interval: u64,
},
Server(ServerCommand),
Search {
pattern: String,
path: Option<PathBuf>,
ignore_case: bool,
word: bool,
literal: bool,
context: u32,
files: bool,
type: Option<String>,
max: Option<usize>,
},
}Variants§
Init
Generate krait.toml config from auto-detected workspaces
Fields
Status
Show daemon health, LSP state, cache stats
Check
Show LSP diagnostics (errors/warnings)
Fields
Find(FindCommand)
Find symbols and references
List(ListCommand)
List symbols or other resources
Read(ReadCommand)
Read files or symbol bodies
Edit(EditCommand)
Semantic code editing via stdin
Daemon(DaemonCommand)
Manage the background daemon
Hover
Show type info and documentation for a symbol
Format
Format a file using the LSP formatter
Rename
Rename a symbol across all files
Fix
Apply LSP quick-fix code actions for current diagnostics
Watch
Poll for diagnostics and print timestamped results
Fields
Server(ServerCommand)
Manage LSP server installations
Search
Search for a pattern in project files
Fields
Trait Implementations§
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more