oak-cmd 0.0.11

High-performance incremental Windows Command (CMD) parser for the oak ecosystem with flexible configuration, supporting shell scripting and automation workflows.
Documentation
#![doc = include_str!("readme.md")]
/// Root node of the Windows Command (CMD) syntax tree.
#[derive(Debug, Clone, serde::Serialize)]
pub struct CmdRoot {
    /// Elements in the syntax tree.
    pub elements: Vec<Element>,
}

/// Element in the Windows Command (CMD) syntax tree.
#[derive(Debug, Clone, serde::Serialize)]
pub enum Element {
    /// Command.
    Command(String),
    /// Variable.
    Variable(String),
    /// String.
    String(String),
    /// Comment.
    Comment(String),
    /// Label.
    Label(String),
    /// Keyword.
    Keyword(String),
    /// Text.
    Text(String),
}