pub enum TargetCmd {
ClaudeCode(TargetArgs),
Openclaw(TargetArgs),
Cursor(TargetArgs),
Cline(TargetArgs),
Continue(TargetArgs),
Windsurf(TargetArgs),
ClaudeDesktop(TargetArgs),
Codex(TargetArgs),
GrokCli(TargetArgs),
GeminiCli(TargetArgs),
}Expand description
Per-target subcommand. Each variant carries the same shared option
set (--apply, --uninstall, --config <path>) — clap-derive
renders one subcommand per target so users get tab-completion on
the agent name and per-target --help.
Variants§
ClaudeCode(TargetArgs)
Claude Code SessionStart hook. Writes ~/.claude/settings.json.
Openclaw(TargetArgs)
OpenClaw MCP servers. Path documented at
https://docs.openclaw.ai/cli/mcp; pass --config <path> if your
install puts it elsewhere.
Cursor(TargetArgs)
Cursor MCP servers. Writes ~/.cursor/mcp.json.
Cline(TargetArgs)
Cline MCP settings. Path varies by Cline version; pass
--config <path> to override.
Continue(TargetArgs)
Continue MCP servers. Writes ~/.continue/config.json.
Windsurf(TargetArgs)
Windsurf (Codeium) MCP servers. Writes
~/.codeium/windsurf/mcp_config.json.
ClaudeDesktop(TargetArgs)
Claude Desktop MCP servers (writes the macOS/Windows config;
pass --config <path> on Linux). Args include
--profile core (the v0.6.4 default).
Codex(TargetArgs)
OpenAI Codex CLI MCP servers. Pass --config <path> since the
canonical Codex config path varies by Codex version. Args
include --profile core.
GrokCli(TargetArgs)
xAI Grok CLI MCP servers. Pass --config <path> since the
Grok CLI config path varies by version. Args include
--profile core.
GeminiCli(TargetArgs)
Google Gemini CLI MCP servers. Pass --config <path> since the
Gemini CLI config path varies by version. Args include
--profile core.
Trait Implementations§
Source§impl FromArgMatches for TargetCmd
impl FromArgMatches for TargetCmd
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>
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>
ArgMatches to self.Source§impl Subcommand for TargetCmd
impl Subcommand for TargetCmd
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
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
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for TargetCmd
impl RefUnwindSafe for TargetCmd
impl Send for TargetCmd
impl Sync for TargetCmd
impl Unpin for TargetCmd
impl UnsafeUnpin for TargetCmd
impl UnwindSafe for TargetCmd
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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>
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>
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