cargo/src/bin/cargo/commands/git_checkout.rs

15 lines
379 B
Rust

use crate::command_prelude::*;
const REMOVED: &str = "The `git-checkout` command has been removed.";
pub fn cli() -> Command {
subcommand("git-checkout")
.about("This command has been removed")
.hide(true)
.override_help(REMOVED)
}
pub fn exec(_config: &mut Config, _args: &ArgMatches) -> CliResult {
Err(anyhow::format_err!(REMOVED).into())
}