feat: render 71freq hwpod preinstall config
This commit is contained in:
+7
-1
@@ -200,11 +200,17 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
const [top, sub, third, fourth] = args;
|
||||
if (top === undefined || top === "help" || top === "--help" || top === "-h") {
|
||||
if (top === undefined || top === "--help" || top === "-h") {
|
||||
emitJson(commandName, rootHelp());
|
||||
return;
|
||||
}
|
||||
|
||||
if (top === "help") {
|
||||
const namespaceHelp = args.length > 1 ? await staticNamespaceHelp([...args.slice(1), "--help"]) : null;
|
||||
emitJson(commandName, namespaceHelp ?? rootHelp());
|
||||
return;
|
||||
}
|
||||
|
||||
if (top === "ssh" && (sub === undefined || isHelpToken(sub) || (isHelpToken(third) && args.length === 3))) {
|
||||
emitJson(commandName, sshHelp());
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user