Skip to content

Commit 1a5737e

Browse files
haraldhenarxbot
authored andcommitted
fix(sev): rename enarx platform snp info
Rename `enarx platform snp info` to `enarx platform snp vcek` to reflect its real purpose. `enarx platform snp vcek --file` also sounds better. Also extend the description of `enarx platform snp update`. Signed-off-by: Harald Hoyer <[email protected]>
1 parent 736cb2f commit 1a5737e

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/cli/platform/snp/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
// SPDX-License-Identifier: Apache-2.0
22

3-
mod info;
43
mod update;
4+
mod vcek;
55

66
use clap::Subcommand;
77

88
/// SNP-specific functionality
99
#[derive(Subcommand, Debug)]
1010
pub enum Subcommands {
11-
Info(info::Options),
11+
Vcek(vcek::Options),
1212
Update(update::Options),
1313
}
1414

1515
impl Subcommands {
1616
pub fn dispatch(self) -> anyhow::Result<()> {
1717
match self {
18-
Self::Info(cmd) => cmd.execute(),
18+
Self::Vcek(cmd) => cmd.execute(),
1919
Self::Update(cmd) => cmd.execute(),
2020
}
2121
}

src/cli/platform/snp/update.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ use crate::backend::sev::snp::vcek::vcek_write;
44

55
use clap::Args;
66

7-
/// Download the VCEK certificate for this platform.
8-
///
9-
/// The certificate will be saved to a cache file in `/var/cache/amd-sev/`
7+
/// Download the current VCEK certificate for this platform
8+
/// to a cache file in the `/var/cache/amd-sev/` directory
109
#[derive(Args, Debug)]
1110
pub struct Options {}
1211

File renamed without changes.

0 commit comments

Comments
 (0)