You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constCommand=require('common-bin')classSubBinextendsCommand{constructor(args){super(args)// For example load some commanderthis.load('path/to/command(include test, dev, cov)')}}classMyBinextendsSubBin{constructor(args){super(args)this.load('path/to/mycommand(include run)')}}module.exports=MyBin
So, My question is how can I disable some SubBin Command
问题就是我想仅仅继承于 SubBin 的一部分命令,但是其他的我又不想要,或者不想要在 help 里面显示出来,有没有提供 disable command 的接口?
Activity
fengmk2 commentedon Feb 9, 2022
可以来提交一个 pr 实现一下。