lightshuttle-manifest 0.4.0

Manifest types, parser, and JSON Schema for LightShuttle
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Command override for container and dockerfile resources.

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

/// Entry point override.
///
/// The short string form is convenient for one-liners; the list form is
/// required when arguments need precise quoting.
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, PartialEq, Eq)]
#[serde(untagged)]
pub enum Command {
    /// Single command line, shell-style.
    Single(String),

    /// Explicit argument list.
    Args(Vec<String>),
}