Skip to content

Adds ability to specify wordbank path and max_index with CLI args#3

Merged
uptudev merged 4 commits intomainfrom
builtin-wordbank
Jun 6, 2024
Merged

Adds ability to specify wordbank path and max_index with CLI args#3
uptudev merged 4 commits intomainfrom
builtin-wordbank

Conversation

@uptudev
Copy link
Copy Markdown
Owner

@uptudev uptudev commented Jun 6, 2024

Describe your changes

  • Wordbanks can now be added via the CLI flags -l (--load) and -i (--max_index), which denote a file path for a wordbank, and the number of lines in the file.
  • Default 500-line wordbank is now compiled in.

Issue ticket number and link

#2 - Should notify user if wordbank not found in the local directory

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.

uptudev added 4 commits June 6, 2024 12:58
Still needs the ability to tweak the `max_index` value, but this
should do the trick for the file IO side of things.
Adds the ability to set the maximum index for the random word generator,
allowing it to only look at the first `x` number of lines where `x` is a
valid `u32` value.
Since it is included into the binary during compilation, the file was
truncated to the first 500 lines, reducing bloat from 40KB to 4KB.
Updated repo URL in the README file, and incremented the minor version
as this is a pretty big change.
@uptudev uptudev added bug Something isn't working enhancement New feature or request labels Jun 6, 2024
@uptudev uptudev self-assigned this Jun 6, 2024
@uptudev uptudev linked an issue Jun 6, 2024 that may be closed by this pull request
@uptudev uptudev merged commit 1442f17 into main Jun 6, 2024
@uptudev uptudev deleted the builtin-wordbank branch June 6, 2024 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should notify user if wordbank not found in the local directory

1 participant