-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replaces commander with native parseArgs (#215)
## Description - replaces commander with native parseArgs - removes the cli main entry from the `bin` folder to `src` (and to `dist` after running typestript) ## Motivation and Context commander is a _great_ command line parser parser. It has been a good fit for the state-machine-cat cli. `parseArgs`, which is part of `node:utils`, is suitable for simple cli needs. And simple cli needas are what state-machine-cat has. Using parseArgs also reduces state-machine-cat('s cli's) dependencies, which means less to maintain & worry about. ## How Has This Been Tested? - [x] automated non-regression tests - [x] green ci ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] Documentation only change - [x] Refactor (non-breaking change which fixes an issue without changing functionality) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) ## Checklist - [x] 📖 - My change doesn't require a documentation update, or ... - it _does_ and I have updated it - [x] ⚖️ - The contribution will be subject to [The MIT license](../LICENSE), and I'm OK with that. - The contribution is my own original work. - I am ok with the stuff in [**CONTRIBUTING.md**](./CONTRIBUTING.md).
- Loading branch information
Showing
23 changed files
with
509 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
ame: 'CodeQL config' | ||
ame: "CodeQL config" | ||
|
||
# See https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs | ||
|
||
paths: | ||
- src/ | ||
- bin/ | ||
- tools/ | ||
- docs/sitesrc/ | ||
- docs/smcat-online-interpreter.js | ||
- docs/state-machine-cat-inpage.js | ||
- docs/index.html | ||
- docs/inpage.html | ||
paths-ignore: | ||
- '**/*.template.js' | ||
- '**/*-parser.mjs' | ||
- "**/*.template.js" | ||
- "**/*-parser.mjs" | ||
queries: | ||
- uses: security-and-quality | ||
query-filters: | ||
- exclude: | ||
id: js/useless-assignment-to-local | ||
id: js/useless-assignment-to-local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.