How to use the @adonisjs/ace.command 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 creatrixity / adonis-auth-scaffold / index.js View on Github external
const ace = require("@adonisjs/ace");
ace.command(
  "make:auth",
  "Generates Views, Controllers and Models for user authentication",
  function({ name }) {
    console.log(`Scaffolding basic authentication`);
  }
);

// Boot ace to execute commands
ace.wireUpWithCommander();
ace.invoke();