Skip to content

Commit

Permalink
Remove create-patch command
Browse files Browse the repository at this point in the history
Remove create-patch command because it is simply a proxy command that is
creating noise in the command surface area. Which is causing new users
to struggle to figure out what they should focus on and actually learn
in terms of commands.

[changelog]
removed: the create-patch command

<!-- ps-id: 4498096c-8891-4739-82ff-3bf9092d3980 -->
  • Loading branch information
drewdeponte committed Oct 20, 2023
1 parent f4cc050 commit e8f05a0
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 30 deletions.
3 changes: 0 additions & 3 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,6 @@ stack.
/// in a headless state.
#[command(name = "checkout", alias = "co")]
Checkout(CheckoutCmdOpts),
/// (c) - create a patch from the currently staged changes
#[command(name = "create-patch", alias = "c")]
CreatePatch,

/// display a log of integrated patches
Log,
Expand Down
11 changes: 0 additions & 11 deletions src/commands/create_patch.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pub mod backup_stack;
pub mod batch_request_review;
pub mod branch;
pub mod checkout;
pub mod create_patch;
pub mod fetch;
pub mod integrate;
pub mod isolate;
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ pub use ps::public::backup_stack::backup_stack;
pub use ps::public::batch_request_review::{batch_request_review, BatchRequestReviewError};
pub use ps::public::branch::{branch, BranchError};
pub use ps::public::checkout::checkout;
pub use ps::public::create_patch::create_patch;
pub use ps::public::fetch::fetch;
pub use ps::public::integrate;
pub use ps::public::isolate::{isolate, IsolateError};
Expand Down
1 change: 0 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ fn main() {
commands::isolate::isolate(opts.patch_index_or_range, cli.color)
}
cli::Command::Checkout(opts) => commands::checkout::checkout(opts.patch_index),
cli::Command::CreatePatch => commands::create_patch::create_patch(),
cli::Command::Log => commands::log::log(),
cli::Command::Fetch => commands::fetch::fetch(cli.color),
#[cfg(feature = "backup_cmd")]
Expand Down
12 changes: 0 additions & 12 deletions src/ps/public/create_patch.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/ps/public/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ pub mod backup_stack;
pub mod batch_request_review;
pub mod branch;
pub mod checkout;
pub mod create_patch;
pub mod fetch;
pub mod integrate;
pub mod isolate;
Expand Down

0 comments on commit e8f05a0

Please sign in to comment.