Skip to main content

nash_cli/
lib.rs

1/// CLI argument parsing and dispatch.
2pub mod cli;
3/// Subcommand implementations.
4pub mod cmd;
5/// GitHub release downloading and archive extraction.
6mod download;
7/// Compiler version proxy logic.
8pub mod proxy;
9
10pub use cli::Cli;
11
12pub const VERSION: &str = env!("CARGO_PKG_VERSION");
13
14pub const BANNER: &str = color_print::cstr!(
15    r#"
16      ___           ___           ___           ___
17     /\  \         /\  \         /\  \         /\__\
18    /::\  \       /::\  \       /::\  \       /:/  /
19   /:/\:\  \     /:/\:\  \     /:/\ \  \     /:/__/
20  /:/  \:\  \   /::\~\:\  \   _\:\~\ \  \   /::\  \ ___
21 /:/__/ \:\__\ /:/\:\ \:\__\ /\ \:\ \ \__\ /:/\:\  /\__\
22 \:\  \  \/__/ \/__\:\/:/  / \:\ \:\ \/__/ \/__\:\/:/  /
23  \:\  \            \::/  /   \:\ \:\__\        \::/  /
24   \:\  \           /:/  /     \:\/:/  /        /:/  /
25    \:\__\         /:/  /       \::/  /        /:/  /
26     \/__/         \/__/         \/__/         \/__/
27
28 The <green><bold>Nash</bold></green> programming language.
29
30 <magenta>repo:</magenta> <blue><italic><dim>https://github.com/nash-script/compiler</dim></italic></blue>
31 <magenta>docs:</magenta> <blue><italic><dim>https://nash-script.dev</dim></italic></blue>
32 <magenta>chat:</magenta> <blue><italic><dim>https://discord.gg/3qQGrKT3eE</dim></italic></blue>"#
33);