Skip to content

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

@CDeltakai CDeltakai self-assigned this Apr 29, 2025
@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

3 participants