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
19 changes: 0 additions & 19 deletions src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,30 +72,11 @@ pub enum Commands {
#[clap(alias("shot"), alias("screenshot"), alias("screenshots"))]
Shots(ShotsCommands),

/// Set, get, and generate device name.
#[command(subcommand)]
Name(NameCommands),

/// Interact with catalog.fireflyzero.com.
#[command(subcommand)]
Catalog(CatalogCommands),
}

#[derive(Subcommand, Debug)]
pub enum NameCommands {
/// Show the current device name.
#[clap(alias("show"), alias("echo"))]
Get,

/// Set a new device name.
#[clap(alias("change"))]
Set(NameSetArgs),

/// Set a new device name.
#[clap(alias("gen"), alias("new"))]
Generate,
}

#[derive(Subcommand, Debug)]
pub enum CatalogCommands {
/// List all games available in the catalog.
Expand Down
5 changes: 0 additions & 5 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ pub fn run_command(vfs: PathBuf, command: &Commands) -> anyhow::Result<()> {
CatalogCommands::List(args) => cmd_catalog_list(args),
CatalogCommands::Show(args) => cmd_catalog_show(args),
},
Name(command) => match command {
NameCommands::Get => cmd_name_get(&vfs),
NameCommands::Set(args) => cmd_name_set(&vfs, args),
NameCommands::Generate => cmd_name_generate(&vfs),
},
Runtime(root_args) => match &root_args.command {
RuntimeCommands::Launch(args) => cmd_launch(root_args, args),
RuntimeCommands::Restart => cmd_restart(root_args),
Expand Down
2 changes: 0 additions & 2 deletions src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ mod import;
mod inspect;
mod logs;
mod monitor;
mod name;
mod new;
mod postinstall;
mod repl;
Expand All @@ -29,7 +28,6 @@ pub use import::cmd_import;
pub use inspect::cmd_inspect;
pub use logs::cmd_logs;
pub use monitor::cmd_monitor;
pub use name::{cmd_name_generate, cmd_name_get, cmd_name_set};
pub use new::cmd_new;
pub use postinstall::cmd_postinstall;
pub use repl::cmd_repl;
Expand Down
47 changes: 0 additions & 47 deletions src/commands/name.rs

This file was deleted.