Skip to content

Commit

Permalink
breaking: Remove deprecated commands. (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed Dec 15, 2023
1 parent 62fcac5 commit 5d6506a
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 100 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@

## Unreleased

#### 💥 Breaking

- Removed old and deprecated CLI commands.

#### 🚀 Updates

- Implemented a new shim strategy for both Unix and Windows.
Expand Down
32 changes: 0 additions & 32 deletions crates/cli/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,6 @@ pub struct App {

#[derive(Clone, Debug, Subcommand)]
pub enum Commands {
#[command(
alias = "ap",
name = "add-plugin",
about = "Add a plugin.",
long_about = "Add a plugin to the local .prototools config, or global ~/.proto/.prototools config.",
hide = true
)]
AddPlugin(AddToolArgs),

#[command(
alias = "a",
name = "alias",
Expand Down Expand Up @@ -184,22 +175,6 @@ pub enum Commands {
)]
Pin(PinArgs),

#[command(
name = "plugins",
about = "List all active and configured plugins.",
hide = true
)]
Plugins(ListToolPluginsArgs),

#[command(
alias = "rp",
name = "remove-plugin",
about = "Remove a plugin.",
long_about = "Remove a plugin from the local .prototools config, or global ~/.proto/.prototools config.",
hide = true
)]
RemovePlugin(RemoveToolArgs),

#[command(
alias = "r",
name = "run",
Expand All @@ -217,13 +192,6 @@ pub enum Commands {
command: ToolCommands,
},

#[command(
name = "tools",
about = "List all installed tools and their versions.",
hide = true
)]
Tools(ListToolsArgs),

#[command(alias = "ua", name = "unalias", about = "Remove an alias from a tool.")]
Unalias(UnaliasArgs),

Expand Down
14 changes: 0 additions & 14 deletions crates/cli/src/commands/add_plugin.rs

This file was deleted.

8 changes: 0 additions & 8 deletions crates/cli/src/commands/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
mod add_plugin;
mod alias;
mod bin;
mod clean;
Expand All @@ -13,18 +12,14 @@ mod list_remote;
mod migrate;
mod outdated;
mod pin;
mod plugins;
mod remove_plugin;
mod run;
mod setup;
pub mod tool;
mod tools;
mod unalias;
mod uninstall;
mod uninstall_global;
mod upgrade;

pub use add_plugin::*;
pub use alias::*;
pub use bin::*;
pub use clean::*;
Expand All @@ -38,11 +33,8 @@ pub use list_remote::*;
pub use migrate::*;
pub use outdated::*;
pub use pin::*;
pub use plugins::*;
pub use remove_plugin::*;
pub use run::*;
pub use setup::*;
pub use tools::*;
pub use unalias::*;
pub use uninstall::*;
pub use uninstall_global::*;
Expand Down
14 changes: 0 additions & 14 deletions crates/cli/src/commands/plugins.rs

This file was deleted.

14 changes: 0 additions & 14 deletions crates/cli/src/commands/remove_plugin.rs

This file was deleted.

14 changes: 0 additions & 14 deletions crates/cli/src/commands/tools.rs

This file was deleted.

4 changes: 0 additions & 4 deletions crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ async fn main() -> MainResult {
app.analyze(systems::load_proto_configs);

match cli.command {
Commands::AddPlugin(args) => app.execute_with_args(commands::add_plugin_old, args),
Commands::Alias(args) => app.execute_with_args(commands::alias, args),
Commands::Bin(args) => app.execute_with_args(commands::bin, args),
Commands::Clean(args) => app.execute_with_args(commands::clean, args),
Expand All @@ -69,8 +68,6 @@ async fn main() -> MainResult {
Commands::Migrate(args) => app.execute_with_args(commands::migrate, args),
Commands::Outdated(args) => app.execute_with_args(commands::outdated, args),
Commands::Pin(args) => app.execute_with_args(commands::pin, args),
Commands::Plugins(args) => app.execute_with_args(commands::plugins, args),
Commands::RemovePlugin(args) => app.execute_with_args(commands::remove_plugin_old, args),
Commands::Run(args) => app.execute_with_args(commands::run, args),
Commands::Setup(args) => app.execute_with_args(commands::setup, args),
Commands::Tool { command } => match command {
Expand All @@ -82,7 +79,6 @@ async fn main() -> MainResult {
}
ToolCommands::Remove(args) => app.execute_with_args(commands::tool::remove, args),
},
Commands::Tools(args) => app.execute_with_args(commands::tools, args),
Commands::Unalias(args) => app.execute_with_args(commands::unalias, args),
Commands::Uninstall(args) => app.execute_with_args(commands::uninstall, args),
Commands::UninstallGlobal(args) => app.execute_with_args(commands::uninstall_global, args),
Expand Down

0 comments on commit 5d6506a

Please sign in to comment.