1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! `tm hooks` project-settings hygiene command group (issue #2940).
//!
//! Why: `tm install` used to wire tm hooks into every discovered project's
//! `.claude/settings.json` on the machine (see
//! `commands::install::install_claude_hooks`'s pre-fix history). This group
//! is the cleanup path for settings files a pre-fix `tm install` already
//! contaminated.
//! What: [`HooksAction`] — currently just `Clean`.
//! Test: `cli_parses_hooks_clean`, `cli_parses_hooks_clean_with_path_and_force`.
use Subcommand;
/// Actions for the `hooks` subcommand (issue #2940).
///
/// Why: scoped so future hook-hygiene verbs (e.g. an `inspect`/`list`) have an
/// obvious home without cluttering the top-level CLI surface.
/// What: `Clean` — see [`Command::Hooks`](crate::cli::Command::Hooks)'s doc
/// comment for the full rationale.
/// Test: `cli_parses_hooks_clean`, `cli_parses_hooks_clean_with_path_and_force`.
pub