Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 0 additions & 139 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@ libflate = "2.2.1"
# Random device name generation
# NOTE: Cannot be updated to 0.9.0+ until rsa is updated to 0.10.0+.
rand = "0.8.5"
# Signatures
rsa = { version = "0.9.9", default-features = false, features = [
"std",
"sha2",
] }
rust-embed = { version = "8.9.0", default-features = false, features = [
"debug-embed",
] }
Expand Down
42 changes: 0 additions & 42 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ pub enum Commands {
#[clap(alias("shot"), alias("screenshot"), alias("screenshots"))]
Shots(ShotsCommands),

/// Manage signing keys.
#[command(subcommand)]
#[clap(alias("keys"))]
Key(KeyCommands),

/// Set, get, and generate device name.
#[command(subcommand)]
Name(NameCommands),
Expand All @@ -83,29 +78,6 @@ pub enum Commands {
Catalog(CatalogCommands),
}

#[derive(Subcommand, Debug)]
pub enum KeyCommands {
/// Generate a new key pair.
#[clap(alias("gen"), alias("generate"))]
New(KeyArgs),

/// Add a new key from catalog, URL, or file.
#[clap(alias("import"))]
Add(KeyArgs),

/// Export public key.
#[clap(alias("export"), alias("public"))]
Pub(KeyExportArgs),

/// Export private key.
#[clap(alias("private"))]
Priv(KeyExportArgs),

/// Remove the public and private key.
#[clap(alias("remove"))]
Rm(KeyArgs),
}

#[derive(Subcommand, Debug)]
pub enum NameCommands {
/// Show the current device name.
Expand Down Expand Up @@ -145,20 +117,6 @@ pub enum ShotsCommands {
Download(ShotsDownloadArgs),
}

#[derive(Debug, Parser)]
pub struct KeyArgs {
pub author_id: String,
}

#[derive(Debug, Parser)]
pub struct KeyExportArgs {
pub author_id: String,

/// Path to the exported key file.
#[arg(short, long, default_value = None)]
pub output: Option<PathBuf>,
}

#[derive(Debug, Parser)]
pub struct NameSetArgs {
pub name: String,
Expand Down
7 changes: 0 additions & 7 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,6 @@ pub fn run_command(vfs: PathBuf, command: &Commands) -> anyhow::Result<()> {
Inspect(args) => cmd_inspect(&vfs, args),
Repl(args) => cmd_repl(&vfs, args),
Shots(ShotsCommands::Download(args)) => cmd_shots_download(&vfs, args),
Key(command) => match command {
KeyCommands::New(args) => cmd_key_new(&vfs, args),
KeyCommands::Add(args) => cmd_key_add(&vfs, args),
KeyCommands::Pub(args) => cmd_key_pub(&vfs, args),
KeyCommands::Priv(args) => cmd_key_priv(&vfs, args),
KeyCommands::Rm(args) => cmd_key_rm(&vfs, args),
},
Catalog(command) => match command {
CatalogCommands::List(args) => cmd_catalog_list(args),
CatalogCommands::Show(args) => cmd_catalog_show(args),
Expand Down
Loading