Skip to content

Use commander package to replace current implementation of CLI options #16

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

Merged
merged 8 commits into from
May 7, 2025

Conversation

CDeltakai
Copy link
Contributor

@CDeltakai CDeltakai commented Apr 29, 2025

Description

This PR integrates the commander package and uses it to implement CLI options. This PR will also implement additional CLI options for defining file matching patterns and shellcheck patterns

Issues Fixed

Tasks

  • 1. Integrate commander package and use it to replace current CLI options
  • 2. Implement additional CLI options to allow for defining folder matching patterns for eslint and shellcheck arguments

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

Sorry, something went wrong.

@CDeltakai CDeltakai self-assigned this Apr 29, 2025
…nstalled minimatch for glob matching
… the lint script recognize --eslint flag properly
…nfig and matrix config stuff if an explicit glob is given
… args for the lint command
CDeltakai added 2 commits May 6, 2025 17:28
@CDeltakai CDeltakai merged commit 87ff89b into staging May 7, 2025
5 checks passed
Comment on lines 31 to +34
async function main(argv = process.argv) {
argv = argv.slice(2);
await program.parseAsync(argv);
const options = program.opts<CLIOptions>();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't how we use Commander. The main code needs to be in the .action(async () => {}) callback of the program. https://www.npmjs.com/package/commander#action-handler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants