mirror of
https://github.com/jht5945/buildj.git
synced 2025-12-29 10:20:04 +08:00
add NOBUILDIN
This commit is contained in:
@@ -318,7 +318,7 @@ fn main() {
|
|||||||
let args = local_util::get_args_as_vec();
|
let args = local_util::get_args_as_vec();
|
||||||
print_message(MessageType::INFO, &format!("Arguments: {:?}", args));
|
print_message(MessageType::INFO, &format!("Arguments: {:?}", args));
|
||||||
|
|
||||||
if local_util::is_buildin_args(&args) {
|
if (! *NOBUILDIN) && local_util::is_buildin_args(&args) {
|
||||||
do_with_buildin_args(&args);
|
do_with_buildin_args(&args);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ use rust_util::util_env::*;
|
|||||||
lazy_static! {
|
lazy_static! {
|
||||||
pub static ref VERBOSE: bool = is_env_on("BUILDJ_VERBOSE");
|
pub static ref VERBOSE: bool = is_env_on("BUILDJ_VERBOSE");
|
||||||
pub static ref NOAUTH: bool = is_env_on("BUILDJ_NOAUTH");
|
pub static ref NOAUTH: bool = is_env_on("BUILDJ_NOAUTH");
|
||||||
|
pub static ref NOBUILDIN: bool = is_env_on("BUILDJ_NOBUILDIN");
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn print_usage() {
|
pub fn print_usage() {
|
||||||
|
|||||||
Reference in New Issue
Block a user