API 参考
正在准备搜索索引...
@142vip/fairy-cli
registerFairySubcommand
函数 registerFairySubcommand
registerFairySubcommand
<
TArgs
extends
unknown
[]
>
(
program
:
VipPackageCliCommander
,
commandKey
:
CommandEnum
,
action
:
(
...
args
:
TArgs
)
=>
void
|
Promise
<
void
>
,
setup
?:
(
command
:
VipCommander
)
=>
void
,
)
:
void
fairy-cli 子命令标准注册:业务参数 → dry-run / vip / trace → action
类型参数
TArgs
extends
unknown
[]
参数
program
:
VipPackageCliCommander
commandKey
:
CommandEnum
action
:
(
...
args
:
TArgs
)
=>
void
|
Promise
<
void
>
可选
setup
:
(
command
:
VipCommander
)
=>
void
返回
void
显示设置
成员可见性
受保护
继承
外部
配色
自动
浅色
深色
API 参考
加载中……
fairy-cli 子命令标准注册:业务参数 → dry-run / vip / trace → action