Questions tagged [oclif]

oclif is an open source framework for building a command line interface (CLI) in Node.js.

38 questions
0
votes
0 answers

Is it possible to mix positional arguments with subcommands in oclif or other cli frameworks?

I'm using oclif and am generally very happy with the facility and the folder=(sub)command structure of it. I'm struggling to find in the docs though how it is possible to do the following: ./mycli command subcommand1 subcommand2 --flag…
rtviii
  • 807
  • 8
  • 19
0
votes
1 answer

How to add same flag to multiple commands in Oclif framework?

I'm writing a CLI using Heroku's CLI framework oclif. It works great, but I have a flag that is applicable to only list type commands. How to add the same flag to multiple commands but not to all in oclif?
0
votes
1 answer

Oclif with yarn workspaces

I have a node / typescript application that leverages yarn workspaces. We are also using oclif for our cli. I want to set up an architecutre where my main cli can leverge cli-plugins from the domains \domains \emailService package.json …
Jonathan
  • 16,077
  • 12
  • 67
  • 106
0
votes
1 answer

Where is `npm link` registring commands on Ubuntu?

Background I have an NodeJS oclif CLI named "mydemo" and ran npm link to register and execute the program's commands globally. After I ran npm unlink mydemo to unregister the command, when I type the program's name, I get the error below. $…
Eric Swanson
  • 820
  • 1
  • 9
  • 19
0
votes
1 answer

Spinner like functionality in Bash when using an autocomplete script that takes a few seconds to complete

I have a CLI application that uses Oclif and NodeJS. I have an autocomplete script that looks like this: # func gets called for the exec binart when Tab is pressed # eg exec [Tab] [Tab] calls __func() __func() { Perform an http request that…
anegru
  • 1,023
  • 2
  • 13
  • 29
0
votes
1 answer

Cannot read property pipe of undefined in csv parser

I am trying to upload a large csv file of 10mb using csv parser and form data in node js while sending a request to an api with axios. My code is the following: //insert new data else if (`${flags.newdata}` !== "undefined" && `${flags.source}`…
user12610369
0
votes
0 answers

How to insert multipart form data in mysql database?

I have created a Rest API with node js and express js. The Rest api is consumed by a cli I have created using oclif and typescript. I want to create a command that takes a csv file sends the data as multipart form data to the rest api, and the rest…
user12610369
0
votes
1 answer

How to execute a angular schematics from Oclif

I'm writting a CLI using Oclif, and i try to exec a Custom Schematics that i build but if i launch separated using "ng add" command, the schematics ask correctly. If i launch schematic from Oclif, it don't ask anything. Examples: Works: In terminal:…
1 2
3