Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ace.hasCommand #160

Open
shiny opened this issue Apr 1, 2024 · 0 comments
Open

Missing ace.hasCommand #160

shiny opened this issue Apr 1, 2024 · 0 comments
Assignees
Labels
Type: Bug The issue has indentified a bug

Comments

@shiny
Copy link

shiny commented Apr 1, 2024

Package version

@adonisjs/ace@13.0.0

Describe the bug

There is a description in docs and a snippet code:

You may use the ace.hasCommand method to check if a command exists before executing it.

import ace from '@adonisjs/core/services/ace'

/**
 * Boot method will load commands (if not already loaded)
 */
await ace.boot()

if (ace.hasCommand('make:controller')) {
  await ace.exec('make:controller', [
    'user',
    '--resource',
  ])
}

But method hasCommand is not exists in ace actually.

Reproduction repo

No response

@thetutlage thetutlage self-assigned this May 6, 2024
@thetutlage thetutlage added the Type: Bug The issue has indentified a bug label May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug The issue has indentified a bug
Projects
None yet
Development

No branches or pull requests

2 participants