mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
DOCS: move the env command help text into a text file.
This commit is contained in:
parent
c5d608216a
commit
7c253991e8
7
src/help/env.txt
Normal file
7
src/help/env.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
Universal Configuration Grammar compiler
|
||||||
|
|
||||||
|
ENVIRONMENT VARIABLES:
|
||||||
|
|
||||||
|
UCG_IMPORT_PATH="{}"
|
||||||
|
A list of paths to search for imports from. Uses the same syntax
|
||||||
|
as your platforms $PATH environment variable.
|
10
src/main.rs
10
src/main.rs
@ -499,16 +499,8 @@ fn importers_command(registry: &ImporterRegistry) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn env_help() {
|
fn env_help() {
|
||||||
println!("Universal Configuration Grammar compiler.");
|
|
||||||
println!("");
|
|
||||||
println!("ENVIRONMENT VARIABLES:");
|
|
||||||
println!("");
|
|
||||||
println!(
|
println!(
|
||||||
"
|
include_str!("help/env.txt"),
|
||||||
UCG_IMPORT_PATH=\"{}\"
|
|
||||||
A list of paths to search for imports from. Uses the same syntax
|
|
||||||
as your platforms $PATH environment variable.
|
|
||||||
",
|
|
||||||
std::env::var("UCG_IMPORT_PATH").unwrap_or(String::new())
|
std::env::var("UCG_IMPORT_PATH").unwrap_or(String::new())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user