Skip to main content

lightshuttle_manifest/model/
command.rs

1//! Command override for container and dockerfile resources.
2
3use schemars::JsonSchema;
4use serde::{Deserialize, Serialize};
5
6/// Entry point override.
7///
8/// The short string form is convenient for one-liners; the list form is
9/// required when arguments need precise quoting.
10#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
11#[serde(untagged)]
12pub enum Command {
13    /// Single command line, shell-style.
14    Single(String),
15
16    /// Explicit argument list.
17    Args(Vec<String>),
18}