Skip to content
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

🎨 Migrate from cac to mri #211

Merged
merged 7 commits into from
Mar 15, 2023
Merged

Conversation

sounisi5011
Copy link
Owner

mri is the CLI argument parser used internally by cac.
Since mri has only minimal features, we are free to create our own CLI.

  • mri does not convert arguments to lowerCamelCase!
    We can know the option names as they are passed to the CLI.
  • mri handles Boolean arguments properly!
    The values of "-n false" and "--dry-run false" are both false.
  • mri doesn't generate versions or help text!
    We can decide all we want to change the output of the CLI.

`mri` is the CLI argument parser used internally by `cac`.
Since `mri` has only minimal features, we are free to create our own CLI.

+ `mri` does not convert arguments to lowerCamelCase!

    We can know the option names as they are passed to the CLI.

+ `mri` handles Boolean arguments properly!

    The values of "-n false" and "--dry-run false" are both `false`.

+ `mri` doesn't generate versions or help text!

    We can decide all we want to change the output of the CLI.
The `require()` function has supported `node:` import since Node.js 14.18.0.
see https://nodejs.org/docs/latest-v14.x/api/modules.html#modules_core_modules
In Node.js 14.14.0, only the `import` statement can use `node:` import.
@codeclimate
Copy link

codeclimate bot commented Mar 15, 2023

Code Climate has analyzed commit 13a6cdf and detected 0 issues on this pull request.

View more on Code Climate.

@sounisi5011 sounisi5011 marked this pull request as ready for review March 15, 2023 20:44
@sounisi5011 sounisi5011 merged commit 33d761d into master Mar 15, 2023
@sounisi5011 sounisi5011 deleted the deps/migrate-from-cac-to-mri branch March 15, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant