moon_config 2.0.13

Core workspace, project, and moon configuration.
Documentation
use crate::{config_struct, is_false};
use schematic::Config;

config_struct!(
    /// Configures the leading frontmatter within a template file.
    /// Docs: https://moonrepo.dev/docs/config/template#frontmatter
    #[derive(Config)]
    pub struct TemplateFrontmatterConfig {
        #[setting(rename = "$schema")]
        pub schema: String,

        /// Force overwrite a file at the destination if there is a conflict.
        #[serde(default, skip_serializing_if = "is_false")]
        pub force: bool,

        /// Override the destination using a relative file path.
        #[serde(default, skip_serializing_if = "Option::is_none")]
        pub to: Option<String>,

        /// Skip writing this file to the destination.
        #[serde(default, skip_serializing_if = "is_false")]
        pub skip: bool,
    }
);