mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
refactor(cli): trim internal command exports (#106426)
This commit is contained in:
committed by
GitHub
parent
0ff265838b
commit
a965d28e04
@@ -2,7 +2,7 @@
|
||||
import type { Command } from "commander";
|
||||
|
||||
/** Remove an exact Command instance from a parent program. */
|
||||
export function removeCommand(program: Command, command: Command): boolean {
|
||||
function removeCommand(program: Command, command: Command): boolean {
|
||||
const commands = program.commands as Command[];
|
||||
const index = commands.indexOf(command);
|
||||
if (index < 0) {
|
||||
|
||||
Reference in New Issue
Block a user