support exclude argv for ttag-cli extract function #147
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new exclude option to the extract command in ttag-cli, allowing users to exclude specific files or directories from the extraction process. The exclude option takes an array of strings, which can be either file or directory paths to exclude.
The implementation includes a new
--exclude
or-e
flag in the yargs configuration object, which passes the value of argv.exclude to the extract function. The function then uses this array to exclude the specified files and directories from the extraction process.Changes Made
Added a new exclude option to the extract command in ttag-cli
Implemented the
--exclude
or-e
flag in the yargs configuration objectPassed the argv.exclude value to the extract function to exclude specified files and directories from the extraction process
Checklist