How to use the @adonisjs/ace.wireUpWithCommander function in @adonisjs/ace

To help you get started, we’ve selected a few @adonisjs/ace examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github YaoZeyuan / zhihuhelp_with_node / src / ace.ts View on Github external
// './command/fetch/collection', //  抓取收藏夹记录
  // './command/generate/author', //  按用户生成电子书
  // './command/generate/activity', //  按用户点赞回答&文章生成电子书
  // './command/generate/column', //  按专栏生成电子书
  // './command/generate/topic', //  按话题生成电子书
  // './command/generate/collection', //  按收藏夹生成电子书
  './command/fetch/customer', //  [抓取]执行自定义任务
  './command/generate/customer', //  [生成]执行自定义任务
]
// register commands
for (const command of registedCommandList) {
  ace.addCommand(require(command)['default'])
}

// Boot ace to execute commands
ace.wireUpWithCommander()
ace.invoke()
github LianjiaTech / fee / server / src / fee.js View on Github external
// 测试uc
  './commands/utils/testUC',
  // 心跳
  './commands/utils/heart_beat',
  // 初始化日报订阅表
  './commands/utils/init_daily_subscription'
]

// register commands
for (let command of registedCommandList) {
  ace.addCommand(require(command)['default'])
}

// Boot ace to execute commands
ace.wireUpWithCommander()
ace.invoke()
github superchargejs / framework / console / index.js View on Github external
makeItHappen () {
    Ace.wireUpWithCommander()
    Ace.invoke()
  }
}