-
-
Notifications
You must be signed in to change notification settings - Fork 402
feat: improve usability of spell.sh #3238
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice additions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the script for my usecase and it didn't work:
$ util/fp-finder/spell.sh -p regex-assembly/include/windows-commands.ra
util/fp-finder/spell.sh: line 25: syntax error near unexpected token `done'
util/fp-finder/spell.sh: line 25: ` done'
Thanks @fzipi. @franbuehler could you try again? I don't have |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used the option -p like you proposed in this comment, but it doesn't seem to be valid:
util/fp-finder/spell.sh -p regex-assembly/include/windows-commands.ra
Unknown option -p
Ah, I can use the ra file as argument without passing an option: util/fp-finder/spell.sh regex-assembly/include/windows-commands.ra
:
util/fp-finder/spell.sh regex-assembly/include/windows-commands.ra
-> checking windows-commands.ra
`- found English word: active
`- found English word: add
`- found English word: append
arp
`- found English word: assign
assoc
`- found English word: at
atmadm
attrib
`- found English word: attributes
auditpol
autochk
autoconv
autofmt
`- found English word: automount
bcdboot
bcdedit
Then I thought, I could use -m for machine readable output, but then I see all words, not only the common English words:
util/fp-finder/spell.sh regex-assembly/include/windows-commands.ra -m
active
add
append
arp
assign
assoc
at
atmadm
attrib
attributes
auditpol
autochk
autoconv
autofmt
automount
bcdboot
Did I test and understand this correctly?
Thanks. Now only English words should appear in the output again. |
Other than the changes / clarifications mentioned, this looks good to me and ready to merge. Works as advertised. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@franbuehler : feel free to merge when you agree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intended. Thanks for the PR, @theseion 🎉
spell
is even installedReplaces #3233.