menu
Channels
Team
Posts
Members
Info

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

Prevent a programmatically called command's output from appearing in stdout

When I run a command programmatically (https://oclif.io/docs/running_programmatically) from my own custom command (aka "Foo"), is there a way to suppress the output of the command from it appearing in the stdout but instead capture that output and reshape it in the calling…

thumbsup
0
message-simple
2

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

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

oclif testing

I'm going quite a hard time trying to test a Command using cli.prompt('waiting for input'). Does anyone know any way to provide input for this?

thumbsup
0
message-simple
6

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

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

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

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