refactor(stdin): disable preview by default and enable when passing --preview (#394)

This commit is contained in:
Alexandre Pasmantier 2025-03-17 21:34:32 +01:00 committed by GitHub
parent 60ea4a7e15
commit ee89b36b42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,12 +183,12 @@ impl Display for PreviewCommand {
#[derive(Debug, Clone, Eq, PartialEq, Hash, Default, EnumString)]
#[strum(serialize_all = "snake_case")]
pub enum PreviewType {
#[default]
Basic,
EnvVar,
Files,
#[strum(disabled)]
Command(PreviewCommand),
#[default]
None,
}