mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 07:21:14 -03:00
cleanup: remove duplicate enum variants
There is no difference in how these two variants are treated. Keeping the old command name around for compatibility is nice, but it does not need to have its own enum variant. Part of #12101
This commit is contained in:
committed by
Johannes Altmanninger
parent
198768a1c7
commit
97b45dc705
@@ -62,7 +62,6 @@ enum StatusCmd {
|
||||
STATUS_TEST_FEATURE,
|
||||
STATUS_CURRENT_COMMANDLINE,
|
||||
STATUS_BUILD_INFO,
|
||||
STATUS_BUILDINFO,
|
||||
STATUS_GET_FILE,
|
||||
STATUS_LIST_FILES,
|
||||
STATUS_TERMINAL,
|
||||
@@ -75,7 +74,7 @@ enum StatusCmd {
|
||||
(STATUS_BASENAME, "basename"),
|
||||
(STATUS_BASENAME, "current-basename"),
|
||||
(STATUS_BUILD_INFO, "build-info"),
|
||||
(STATUS_BUILDINFO, "buildinfo"),
|
||||
(STATUS_BUILD_INFO, "buildinfo"),
|
||||
(STATUS_CURRENT_CMD, "current-command"),
|
||||
(STATUS_CURRENT_COMMANDLINE, "current-commandline"),
|
||||
(STATUS_DIRNAME, "current-dirname"),
|
||||
@@ -578,7 +577,7 @@ pub fn status(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> B
|
||||
return Err(STATUS_INVALID_ARGS);
|
||||
}
|
||||
match s {
|
||||
STATUS_BUILD_INFO | STATUS_BUILDINFO => {
|
||||
STATUS_BUILD_INFO => {
|
||||
let version = bytes2wcstring(crate::BUILD_VERSION.as_bytes());
|
||||
let target = bytes2wcstring(env!("BUILD_TARGET_TRIPLE").as_bytes());
|
||||
let host = bytes2wcstring(env!("BUILD_HOST_TRIPLE").as_bytes());
|
||||
|
||||
Reference in New Issue
Block a user