mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Extract features
Needed to infer the type if none is used
This commit is contained in:
parent
0060316a96
commit
ea83016317
1 changed files with 9 additions and 10 deletions
|
@ -447,16 +447,15 @@ pub fn status(parser: &Parser, streams: &mut IoStreams, args: &mut [&wstr]) -> O
|
||||||
streams.out.append(L!("Profile: "));
|
streams.out.append(L!("Profile: "));
|
||||||
streams.out.appendln(profile);
|
streams.out.appendln(profile);
|
||||||
streams.out.append(L!("Features: "));
|
streams.out.append(L!("Features: "));
|
||||||
streams.out.appendln(str2wcstring(
|
let features: &[&str] = &[
|
||||||
[
|
|
||||||
#[cfg(gettext)]
|
#[cfg(gettext)]
|
||||||
"gettext",
|
"gettext",
|
||||||
#[cfg(feature = "installable")]
|
#[cfg(feature = "installable")]
|
||||||
"installable",
|
"installable",
|
||||||
]
|
];
|
||||||
.join(" ")
|
streams
|
||||||
.as_bytes(),
|
.out
|
||||||
));
|
.appendln(str2wcstring(features.join(" ").as_bytes()));
|
||||||
streams.out.appendln("");
|
streams.out.appendln("");
|
||||||
return STATUS_CMD_OK;
|
return STATUS_CMD_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue