MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / Disable

Class Disable

atomic-cli/src/commands/agent/disable.rs:38–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36/// `atomic agent sessions clean` for that.
37#[derive(Debug, Args)]
38pub struct Disable {
39 /// Which agent to remove hooks for.
40 ///
41 /// If not specified, removes hooks for all agents that have them
42 /// installed.
43 #[arg(long, value_name = "NAME")]
44 agent: Option<String>,
45
46 /// Remove hooks for all installed agents.
47 ///
48 /// Equivalent to running `disable` for each agent that has hooks
49 /// currently installed.
50 #[arg(long)]
51 all: bool,
52
53 /// Remove hooks described by an integration-supplied manifest file.
54 ///
55 /// Reads the same manifest used by `atomic agent enable --hooks`, and
56 /// removes only the entries whose command matches the manifest's
57 /// `command_prefix` from its target file. Non-Atomic hooks are preserved.
58 #[arg(long, value_name = "FILE")]
59 hooks: Option<std::path::PathBuf>,
60}
61
62impl Disable {
63 /// Create a default instance for testing.

Callers 1

Calls

no outgoing calls

Tested by 1