fix(installer): use core.common in runtime healthcheck and fix CLI guard in ucode modules
This commit is contained in:
@@ -2236,7 +2236,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
exit(main(ARGV));
|
||||
@@ -258,7 +258,7 @@ function module_exports() {
|
||||
return constants_map();
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0] || "";
|
||||
|
||||
@@ -213,7 +213,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
// CLI surface exists for the shell test suite, which has no way to import a
|
||||
|
||||
@@ -590,7 +590,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0] || "";
|
||||
|
||||
@@ -235,7 +235,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0] || "";
|
||||
|
||||
@@ -232,7 +232,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0] || "";
|
||||
|
||||
@@ -383,7 +383,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = as_string(ARGV[0]);
|
||||
|
||||
@@ -342,7 +342,7 @@ function run(argv, usage_path) {
|
||||
}
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "") {
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null) {
|
||||
return {
|
||||
run,
|
||||
nft_queue_overlap
|
||||
|
||||
@@ -364,7 +364,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0] || "";
|
||||
|
||||
@@ -17,7 +17,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
validator.run_expected(KIND, USAGE, ARGV);
|
||||
@@ -17,7 +17,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
validator.run_expected(KIND, USAGE, ARGV);
|
||||
@@ -1346,7 +1346,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
// CLI surface for the shell test suite, which cannot import a ucode module.
|
||||
|
||||
@@ -3254,7 +3254,7 @@ function module_exports() {
|
||||
};
|
||||
}
|
||||
|
||||
if (sourcepath(1) != null && sourcepath(1) != "")
|
||||
if ((sourcepath(1) != null && sourcepath(1) != "") || ARGV[0] == null)
|
||||
return module_exports();
|
||||
|
||||
let mode = ARGV[0];
|
||||
|
||||
Reference in New Issue
Block a user