Skip to main content

lux_cli/dist/
mod.rs

1mod bin;
2mod flat_archive;
3
4pub use bin::*;
5pub use flat_archive::*;
6
7use clap::Subcommand;
8
9#[derive(Subcommand)]
10pub enum Dist {
11    /// Distribute an archive of a flat install tree which includes all dependencies.{n}
12    /// The resulting archive does not include the `etc` directory or build dependencies.{n}
13    /// Unlike a Lux tree, dependency conflicts are not supported/handled.
14    FlatArchive(FlatArchive),
15    /// Compile a Lux project, including its dependencies, into a single static binary,{n}
16    /// which runs on systems that do not have Lua installed.{n}
17    /// As with flat-archive, dependency conflicts are not supported/handled.{n}
18    /// {n}
19    /// The entrypoint is specified via the lux.toml's [run] field, e.g.: {n}
20    /// {n}
21    /// ```toml{n}
22    /// [run]{n}
23    /// args = ["src/main.lua"]{n}
24    /// ```
25    Bin(Bin),
26}