menu
Channels
Team
Posts
Members
Info
down-caret

oclif templating / scaffolding command like yeoman / plopjs

Hey, just starting out with oclif so new to how to build commands. But I'd like to build a command to code generate parts of a web app that I'm building. I have it in mind that I should use something like yeoman or plopjs (both of which I've not used before). Example; I want to…

thumbsup
2
message-simple
6

How can I control the case when users run command without any sub command?

In the multi commands mode (mycommand for example), when the user runs mycommand without any subcommand, it prints out the help menu. How can I control this? I want to print a menu when the user runs mycommand.

thumbsup
0
message-simple
0

Save the Date: oclifconf on May 31st!

The inaugural oclifconf will take place on Friday, May 31st in San Francisco. What is oclifconf? It's the first in-person event for the oclif community, organized by Heroku & Salesforce Open Source. oclifconf will be a one-day, single-track conference for developers & product…

thumbsup
6
message-simple
0

Autocomplete for flag values is announce in the doc but seems not to be here

https://github.com/oclif/oclif mentions: Autocomplete - Automatically include autocomplete for your CLI. This includes not just command names and flag names, but flag values as well. But it seems that flag values completion is not supported.

thumbsup
0
message-simple
0

When running `./bin/run` I used to be able to see my changes immediately

Anyone know what could have changed in my local setup where now I have to run npm run prepack each time I want to see my change? I'm using typescript

thumbsup
0
message-simple
0

Possible to set global flags?

We have a use case where we want to allow 2 global flags on all commands Is there a way to do this? Ref: https://github.com/netlify/cli/issues/248 …

thumbsup
1
message-simple
1

Is there a way to access the `this.config.configDir` statically?

thumbsup
0
message-simple
0

How to support piping input to my oclif commands?

Is this possible, and if so, can someone please point me to any docs, examples, etc?

thumbsup
0
message-simple
0

Using listr this.log is not shown in stdout anymore

I'm using listr and when I try to use this.log inside a task it i never shown in stdout. Any way to solve around this issue?

thumbsup
0
message-simple
2

Leveraging other installed CLIs?

I'm writing a small cli for use with Salesforce and I'd like to leverage auth:web:login instead of reinventing the wheel. Specifically the login flow and resulting access token. Is that possible? Advisable?

thumbsup
0
message-simple
0