cli/commands/trust.rs
1use clap::Subcommand;
2
3#[derive(Clone, Debug, Eq, PartialEq, Subcommand)]
4pub enum TrustCommands {
5 /// List current external-code trust grants
6 List,
7 /// Inspect the current external-code requirements for one canonical target
8 Inspect {
9 #[arg(value_name = "TARGET")]
10 target: String,
11 },
12 /// Trust the current external code and declared permissions for one target
13 Grant {
14 #[arg(value_name = "TARGET")]
15 target: String,
16 /// Confirm the rendered trust scope without prompting
17 #[arg(long)]
18 yes: bool,
19 },
20 /// Revoke every external-code grant for one target
21 Revoke {
22 #[arg(value_name = "TARGET")]
23 target: String,
24 },
25}