New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: support CLIs with single top level command #426
Conversation
Please let me know if the below migration would be correct then:
{
"oclif": {
"default": ".",
"commands": "./lib" // as my "index.ts" is at "src/index.ts" and my tsc builds to "lib"
}
} |
That should also work |
It works, but the ❯ bin/dev --help
Downloads and extracts binaries from compressed packages using a config file
USAGE
$ bindl . [--version] [--help] [-c <value>]
FLAGS
-c, --config=<value> Path to the config file
--help Show CLI help.
--version Show CLI version.
DESCRIPTION
Downloads and extracts binaries from compressed packages using a config file
The config will be read from any valid config file in the current directory. The configuration file can be defined
using all the extensions and names accepted by cosmiconfig, such as bindl.config.js
Downloads and extracts binaries from compressed packages using a config file
VERSION
bindl/2.0.0 wsl-x64 node-v16.15.1
USAGE
$ bindl [COMMAND]
COMMANDS
. Downloads and extracts binaries from compressed packages using a config file
|
Another issue:
|
@felipecrs I pushed a commit last night that should resolve the issues you're seeing - let me know if that works better for you |
@mdonnalley thank you! I will test and let you know. |
Support CLIs with a single top level command (i.e. the executable is the only command).
With this fix, users will need to do two things:
commands
dir, e.g.src/commands/index.ts
default
in their oclif config, for exampleFixes #425