URL download option
Opened this issue · 0 comments
davestewart commented
Describe the feature
Hey Pooya,
Congrats on another exceptionally useful repository.
I regularly have need to download examples – not templates – from repos, for example:
- https://github.com/wxt-dev/wxt-examples/tree/main/examples/vue
- https://github.com/crxjs/chrome-extension-tools/tree/main/packages/vite-plugin/tests/e2e/mv3-vite-vue-page
These kind of examples folder setups are pretty common; I wonder if a direct URL download option could be added to the package, such as:
# download single folder
npx giget@latest https://github.com/wxt-dev/wxt-examples/tree/main/examples/vue
# download several folders
https://github.com/wxt-dev/wxt-examples/tree/main/examples/vue*
That way it's a super-easy copy/paste job.
Could perhaps the folders be filtered after the download of the main repo?
I took a look at the source files, and perhaps it might even be manageable for me to produce a PR!
LMK, and thanks again for all the great code 🙏
Additional information
- Would you be willing to help implement this feature?