Code Monkey home page Code Monkey logo

Comments (6)

jdx avatar jdx commented on May 31, 2024 1

might be a bug, looking into it. In regards to the index.ts. This would be technically possible but I'm assuming what you're doing here is trying to make the description dynamic (no?). Technically we could do this for topic descriptions, but it wouldn't work at all for command descriptions as we write this out to a manifest so we don't have to load every command when we run.

In general I've tried to move away from having files like this as I would have to require each of them from every plugin when the CLI first starts in order to load the help. For large CLIs, this gets slow pretty quickly unless you're careful not to require large dependencies.

from oclif.

jdx avatar jdx commented on May 31, 2024

it looks like this:

"topics": {
    "apps": {
      "description": "manage your apps",
    },
    "apps:builds": {
       "description": "manage your builds for an app"
    }
  }
}

EDIT: updated with correct code from below

from oclif.

jhorst11 avatar jhorst11 commented on May 31, 2024

thanks for the quick response @jdxcode unfortunately that still picks up to description of the first command in my apps/builds directory:

image

from oclif.

jdx avatar jdx commented on May 31, 2024

oh I think I was thinking of an earlier code version, can you try this instead?

"topics": {
    "apps": {
      "description": "manage your apps",
    },
    "apps:builds": {
       "description": "manage your builds for an app"
    }
  }
}

from oclif.

jhorst11 avatar jhorst11 commented on May 31, 2024

that did it! Thanks so much @jdxcode ! Great work on this!

from oclif.

jdx avatar jdx commented on May 31, 2024

I went ahead and put a little example in the README too

from oclif.

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.