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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//! Command-line surface: clap derive types only, one module per
//! subcommand's arguments. No behavior lives here; each variant routes to
//! its handler in `commands`.
pub mod adopt;
pub mod completions;
pub mod doctor;
pub mod guide;
pub mod init;
pub mod payload;
pub mod read;
pub mod runs;
pub mod setup;
pub mod skill;
pub mod status;
pub mod upgrade;
pub mod versions;
use clap::{Parser, Subcommand};
/// The release-kit CLI: reads the canon and lands the deterministic files.
#[derive(Debug, Parser)]
#[command(name = "rk", version, about, propagate_version = true)]
pub struct Cli {
/// Which subcommand to run.
#[command(subcommand)]
pub command: Commands,
}
/// Every subcommand the binary offers.
#[derive(Debug, Subcommand)]
pub enum Commands {
/// Read the technology-agnostic method chapters.
Method(read::ReadArgs),
/// Read the per-technology bindings.
Binding(read::ReadArgs),
/// Read the deterministic files a binding lands.
Snippet(read::ReadArgs),
/// Print a runbook with what detection knows filled in.
Guide(guide::GuideArgs),
/// Read the per-forge documents.
Forge(read::ReadArgs),
/// Print the pinned-tool registry, with --check as its online freshness report.
Versions(versions::VersionsArgs),
/// Report the payload this binary carries, with its digests.
Payload(payload::PayloadArgs),
/// Land a technology's files into a target repository.
Init(init::InitArgs),
/// Report what landed in a target and whether it drifted.
Status(status::StatusArgs),
/// Take a landed target to this binary's payload.
Upgrade(upgrade::UpgradeArgs),
/// Record a target landed before the record existed.
Adopt(adopt::AdoptArgs),
/// Execute the repository-side setup against the detected forge.
Setup(setup::SetupArgs),
/// Inspect and prune the run journals.
Runs(runs::RunsArgs),
/// Manage the agent skills at user scope.
Skill(skill::SkillArgs),
/// Run every environment probe and report by class.
Doctor(doctor::DoctorArgs),
/// Print the whole command surface in one call.
Usage,
/// Print the license terms the binary carries.
License,
/// Generate shell completions.
Completions(completions::CompletionsArgs),
}