mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
docs: document cli utility helpers
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Commander registration for device pairing and auth-token commands.
|
||||
import type { Command } from "commander";
|
||||
import { applyParentDefaultHelpAction } from "./program/parent-default-help.js";
|
||||
|
||||
@@ -22,6 +23,7 @@ type DevicesRuntimeModule = typeof import("./devices-cli.runtime.js");
|
||||
let devicesRuntimePromise: Promise<DevicesRuntimeModule> | undefined;
|
||||
|
||||
function loadDevicesRuntime(): Promise<DevicesRuntimeModule> {
|
||||
// Keep device-pairing crypto/table dependencies out of root help startup.
|
||||
return (devicesRuntimePromise ??= import("./devices-cli.runtime.js"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user