-
Notifications
You must be signed in to change notification settings - Fork 3
Added prefix argument to keywords tool #492
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
base: master
Are you sure you want to change the base?
Conversation
Also changed previous prefix argument to write-prefixes, as that is what it did
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #492 +/- ##
==========================================
- Coverage 84.84% 84.72% -0.13%
==========================================
Files 30 30
Lines 4784 4792 +8
==========================================
+ Hits 4059 4060 +1
- Misses 725 732 +7 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jesper-friis
left a comment
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.
Suggested some changes. Nice implementation of the --prefix argument
| ) | ||
| if is_curie(name): | ||
| return name | ||
| print(name) |
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.
remove
| namespace_filter: Keep only keywords within this namespace. | ||
| A prefix, namespace or a sequence of these. |
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.
| namespace_filter: Keep only keywords within this namespace. | |
| A prefix, namespace or a sequence of these. | |
| namespace_filter: A prefix, namespace or a sequence of these. | |
| Keep only keywords within this namespace. |
| "the namespace " | ||
| "provided by this option. Can be provided more that once. " | ||
| "To be used with the --keywords option. " | ||
| "To be used with the --write-markdown option. " |
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.
| "To be used with the --write-markdown option. " | |
| "To be used with the --write-kw-md option. " |
| "If missing," | ||
| "it can be added with --prefix." |
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.
| "If missing," | |
| "it can be added with --prefix." | |
| "If missing, t can be added with --prefix." |
| help=( | ||
| "Comma-separated list of keywords to include in generated table. " | ||
| "Implies --keywords." | ||
| "Implies --write-markdown." |
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.
| "Implies --write-markdown." | |
| "Implies --write-kw-md." |
| "Generate keywords Markdown documentation for any keywords who's " | ||
| "domain is in the comma-separated list CLASSES. " | ||
| "Implies --keywords." | ||
| "Implies --write-markdown." |
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.
| "Implies --write-markdown." | |
| "Implies --write-kw-md." |
| "--prefixes", | ||
| "-p", | ||
| "--write-prefixes", | ||
| "-w", |
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.
Not a very intuitive short option name, but -p is already used. We can either keep it as it is or remove the short option.
| "-w", | ||
| metavar="FILENAME", | ||
| help="Generate prefixes Markdown documentation.", | ||
| help="Write prefixes file.", |
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.
| help="Write prefixes file.", | |
| help="Write prefixes Markdown file.", |
|
|
||
| kw = Keywords(theme=default_theme) | ||
|
|
||
| if args.prefix: |
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 :-)
Also changed previous prefix argument to write-prefixes, as that is what it did
Description
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.