menu
Channels
Team
Posts
Members
Info

How would I deploy custom config file with the CLI

I am currently working on deploying a client and we have configuration files that need to be installed in the config dir of the CLI while deploying with npm install it's it possible to do it and how ?

thumbsup
0
message-simple
0

Can you call an oclif command programatically?

I am working on wrapping an oclif cli with a gui and need to determine how to execute the commands from the callbacks.

thumbsup
0
message-simple
1

Is there a way to do a global error boundary?

I'm looking to catch errors across all commands, and return a friendly message and a way to report it. Is there a good way to achieve this?

thumbsup
0
message-simple
1

mutate in prerun hook

Working on a plugin that adds node-config like function to all commands (env vars, config file, and cli as flags & args). I do not want to extend the command class - then everythign would have to use my command. So in a prerun hook I am mutating the argv and flags object. Can…

thumbsup
0
message-simple
0

How can i mock commands executed in tests

Hi All, I am new to oclif, really appreciate your help in advance I am creating commands using oclif, which simplifies l local set up/runlist - - I am using execa[1] to run system commands as part of the command. …

thumbsup
0
message-simple
1

How to migrate from Node js cli to OCLIF?

We have a Node js CLI script which we are planning to migrate to OCLIF multi cli. How i can i do it ? If yes can i convert the js scripts to typescript too ?

thumbsup
0
message-simple
0

Shared flag from base command + args in sub commands

Is there a way to implement this in the best way ?? https://github.com/oclif/oclif/issues/225

thumbsup
0
message-simple
0

hey guys, anyone knows this issue ?

I developed a new package which i hope to use in my project with npm install. The IDE says no errors , but when I run ./bin/run, it failes with MODULE_NOT_FOUND

thumbsup
0
message-simple
0

getting a strict mode error when using plain javascript

thumbsup
0
message-simple
1

Is there way to add padding to output?

thumbsup
1
message-simple
0