feat: rebrand seal-home to seal-use with self-healing upgrade and backward compatibility (v0.10.0) (#15)
This commit is contained in:
1 parent
69d2bc0147
commit
068637c667
74 files changed
+1568
-1359
No files matched your search
+4
-4
@@ -140,7 +140,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
Boolean(args.options.V)
|
||||
) {
|
||||
printJson({
|
||||
name: "seal-home",
|
||||
name: "seal-use",
|
||||
version: VERSION
|
||||
});
|
||||
return;
|
||||
@@ -152,7 +152,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
}
|
||||
|
||||
if (!KNOWN_AREAS.has(area)) {
|
||||
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-home help' for available commands.`);
|
||||
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-use help' for available commands.`);
|
||||
}
|
||||
|
||||
if (area === "openapi") {
|
||||
@@ -236,7 +236,7 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
|
||||
if (area === "delegation" && action === "create" && ("from-link" in args.options || "link" in args.options)) {
|
||||
const link = stringOption(args.options["from-link"]) ?? stringOption(args.options.link);
|
||||
if (!link) throw new Error("Usage: seal-home delegation create --from-link <url> [--note <note>]");
|
||||
if (!link) throw new Error("Usage: seal-use delegation create --from-link <url> [--note <note>]");
|
||||
await handleDelegationFromHoseLink(link, stringOption(args.options.note));
|
||||
return;
|
||||
}
|
||||
@@ -320,5 +320,5 @@ async function dispatch(argv: string[], runtime: CliRuntime) {
|
||||
return;
|
||||
}
|
||||
|
||||
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-home help' for available commands.`);
|
||||
throw new Error(`Unknown command: ${args.command.join(" ")}. Run 'seal-use help' for available commands.`);
|
||||
}
|
||||
Reference in new issue
Block a user