menu
Channels
Team
Posts
Members
Info

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
1
message-simple
2

Good Morning! I've got a question about Topics.

I am not sure how to generate the default command automatically. Should it be oclif command <command>:index or oclif command <command> after you start the topic?

thumbsup
0
message-simple
0

Is there a way to introduce inflection for flag parsing?

For example i want --my-flag from the input, to be transformed to flags.myFlag. I tried doing: And But neither worked so I assume this is unsupported. Is there a good way to introduce this?

thumbsup
0
message-simple
1

Disable a specific warning

Hello, I am calling an https API for a school project, but do not care for TLS certificates and authentication. I have set NODE_TLS_REJECT_UNAUTHORIZED to 0 and I receive this warning any time I use my cli: "(node:32132) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED…

thumbsup
0
message-simple
1

Windows installer not doing clean install

With the windows installer, we are seeing differences between clean installs and installs over old versions. Are there any options that can be oclif-dev pack:win, to force it to remove old installation before installing?

thumbsup
0
message-simple
0

What's the use of index.ts file created by the generator?

I want to configure dotenv for my application, for which I was doing the initial config step in the index.ts file. But after running the app, I found that the index.ts file isn't getting called at all.

thumbsup
0
message-simple
0

Is there a way to change the config and data directories from .{topic}/appname…

thumbsup
0
message-simple
0

Proper way to access .env file of project during oclif command

Hi, Does anyone have an example of a command that pulls from the project's local .env file to get some user-set var?

thumbsup
0
message-simple
2

Can you customize autocomplete?

I'd like to autocomplete an argument. Can I pass a getter fn to something somewhere that looks up the possible args?

thumbsup
0
message-simple
2

Is it possible to use another CLI with Oclif?

I have no experience in building a CLI. I wonder if such a scenario is possible with oclif: 1. user chooses one of several options 2. user chooses one of several options …

thumbsup
0
message-simple
2