-
Notifications
You must be signed in to change notification settings - Fork 12
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
🐛 FIX: Glob path works as intended (#35) #39
base: main
Are you sure you want to change the base?
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Codecov ReportBase: 84.40% // Head: 84.40% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## main #39 +/- ##
=======================================
Coverage 84.40% 84.40%
=======================================
Files 9 9
Lines 1629 1629
=======================================
Hits 1375 1375
Misses 254 254
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Heya, thanks for the PR!
Erm when you say it doesn't work, how are you using it? For unix/osx terminals they already handle the glob expansion, e.g.: rst-to-myst$ echo docs/**/*.rst
docs/source/api.rst docs/source/cli.rst So it certainly works for me as intended: rst-to-myst/$ rst2myst convert docs/**/*.rst
docs/source/api.rst -> docs/source/api.md
CONVERTED (extensions: [])
docs/source/cli.rst -> docs/source/cli.md
CONVERTED (extensions: []) |
Also, looking at the code for the added extension, its very minimal: https://gitlab.com/abraxos/click-path/-/blob/master/click_path/core.py#L10 So if we were to do something like this, I would rather just have the code, and avoid the extra dependency 😅 |
ah I see its meant to fix for windows, but yeh I wouldadd the code here for the paramtype, and also would be good to have a test in |
Yes exactly, it does currently not work on windows except if you specify every file separately. Theoretically this should maybe be fixed within the click package, as the click.Path behaves different on Linux and Windows… |
So I have done some tests and even though it is fixable with the above mentionned code there seems to be another issue here. While testing on a different laptop, I could not get the previously mentionned error on windows, there I used python |
yes it would be nice to know why this 🤔 |
Replace
click.Path
with the click-pathGlobPath
to have the CLI work as intended in the readme.