-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
v7.0.0 coming soon #1386
Comments
Nice work @shadowspawn to keep this repo going! 👍 🙏 |
I'll do another prerelease soon to add #1387 |
Prerelease v7.0.0-1 has a couple of new features, and a number of minor improvements. Release notes: |
Work underway to change the default behaviour so options are not stored as properties on the command: #1409 |
#1409 has landed in v7.0.0-2 and includes multiple breaking changes! See the Release Notes and let us know if there are issues or the release notes could be improved. |
The latest code for upcoming Commander 7 is now on the develop branch. There will not be another prerelease to npm, but you can try the latest code by installing from GitHub:
The main changes from 7.0.0-2 are:
For changes see: |
Hi @shadowspawn, When you plan to make a release? |
Aiming to release this Friday or over the weekend. |
7.0.0 has been released. Thanks to all who have contributed. |
Hi @shadowspawn, I wrote basic help extensions for const program = require('x-commander');
program.configureHelp({
labels: {
usage: '>>> Usage:\n',
description: '>>> Description:\n',
arguments: '>>> Arguments:\n',
options: '>>> Options:\n',
commands: '>>> Commands:\n',
},
styles: {
label: str => '\x1b[33m' + str + '\x1b[0m', // yellow
term: str => '\x1b[32m' + str + '\x1b[0m', // green
description: str => '\x1b[36m' + str + '\x1b[0m', // cyan
},
formatParams: {
newLineUsage: true,
baseIndentWidth: 2,
itemIndentWidth: 4,
},
formatHelp(cmd, helper) {
return ['', helper.renderHelpTemplate(cmd, helper), ''].join('\n');
}
});
program
.command('test <cmd> [env] [val]')
.description('long description '.repeat(100), {
cmd: 'cmd description '.repeat(50),
env: 'env description '.repeat(50),
val: 'val description '.repeat(50)
})
.action((cmd, env, options) => {});
program.parse(process.argv); |
Nice. I like the styles especially. |
Release Notes:
README: https://github.com/tj/commander.js/blob/release/7.x/Readme.md
You can try the prerelease with:
Open an issue or add a comment here for any problems you encounter.
The text was updated successfully, but these errors were encountered: