Git Product home page Git Product logo

Comments (5)

RomainLanz avatar RomainLanz commented on June 11, 2024

Hey @Melchyore! ๐Ÿ‘‹

I'm sorry, but I didn't get what you are trying to do.
Do you want to add commands from a third party package?

from adonis-cli.

Melchyore avatar Melchyore commented on June 11, 2024

Hello @RomainLanz !
No that's not what I'm looking for. What I want is to do something like this in my application

Event.on('command:make:controller', cb)

cb is the callback function that will return command name, arguments, options (flags), and exit code.
For example, if I run the following command adonis make:controller Foo the callback will return this object :

{
  "exit_code": 0, // 1 if there was an error
  "name": "make:controller",
  "args": {
    "name": "Foo"
  },
  "options": {
    "type": "http | ws", // Depending on user selection...
    "resource": false
  }
}

Excuse me if it wasn't clear.

As I said it's just an example but that would be so useful.

from adonis-cli.

thetutlage avatar thetutlage commented on June 11, 2024

Whatโ€™s the use case for this?

from adonis-cli.

Melchyore avatar Melchyore commented on June 11, 2024

@thetutlage it will help me for this adonisjs/rfcs#16

from adonis-cli.

thetutlage avatar thetutlage commented on June 11, 2024

@Melchyore We first need to finalize the approach for tracking all that information and then move to individual repos and enable required API's.

Closing this for now

from adonis-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.