mirror of
https://github.com/nushell/nushell.git
synced 2025-01-01 12:00:10 +01:00
18 lines
411 B
Rust
18 lines
411 B
Rust
use crate::parser::Span;
|
|
use derive_new::new;
|
|
use getset::Getters;
|
|
use serde_derive::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Deserialize, Serialize)]
|
|
pub enum FlagKind {
|
|
Shorthand,
|
|
Longhand,
|
|
}
|
|
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash, Getters, new)]
|
|
#[get = "crate"]
|
|
pub struct Flag {
|
|
kind: FlagKind,
|
|
name: Span,
|
|
}
|