rustyroad 1.8.6

Rusty Road is a framework written in Rust that is based on Ruby on Rails. It is designed to provide the familiar conventions and ease of use of Ruby on Rails, while also taking advantage of the performance and efficiency of Rust.
//! Arguments selecting the model languages.

use super::{flag, value, with};
use clap::{Arg, Command};

/// Adds the arguments selecting the model languages.
pub(in crate::database::introspection::cli::command) fn models(command: Command) -> Command {
    with(
        command,
        vec![
            flag("models", "Also emit Rust sqlx models"),
            value("models-out", "Rust model folder (default: ./src/models)"),
            flag(
                "actix",
                "With --models, also emit actix-web handlers and utoipa annotations",
            ),
            flag("tether-models", "Also emit TetherScript models"),
            value(
                "tether-models-out",
                "TetherScript model folder (default: ./models)",
            ),
            Arg::new("zod")
                .long("zod")
                .alias("zod-models")
                .action(clap::ArgAction::SetTrue)
                .help("Also emit standalone Drizzle-backed Zod schemas"),
            Arg::new("zod-out")
                .long("zod-out")
                .alias("zod-models-out")
                .help("Standalone Zod schema folder (default: ./src/schemas)"),
        ],
    )
}