mirror of
https://github.com/casey/just.git
synced 2025-12-23 11:37:29 +00:00
25 lines
756 B
Rust
25 lines
756 B
Rust
use super::*;
|
|
|
|
#[derive(Copy, Clone, Debug, PartialEq, Ord, Eq, PartialOrd)]
|
|
pub(crate) enum UnstableFeature {
|
|
FormatSubcommand,
|
|
LogicalOperators,
|
|
ScriptAttribute,
|
|
ScriptInterpreterSetting,
|
|
}
|
|
|
|
impl Display for UnstableFeature {
|
|
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
|
match self {
|
|
Self::FormatSubcommand => write!(f, "The `--fmt` command is currently unstable."),
|
|
Self::LogicalOperators => write!(
|
|
f,
|
|
"The logical operators `&&` and `||` are currently unstable."
|
|
),
|
|
Self::ScriptAttribute => write!(f, "The `[script]` attribute is currently unstable."),
|
|
Self::ScriptInterpreterSetting => {
|
|
write!(f, "The `script-interpreter` setting is currently unstable.")
|
|
}
|
|
}
|
|
}
|
|
}
|