Skip to content
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

Command for fetching file contents #53

Open
simonw opened this issue Nov 29, 2020 · 1 comment
Open

Command for fetching file contents #53

simonw opened this issue Nov 29, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Collaborator

simonw commented Nov 29, 2020

Something like this:

github-to-sqlite files github.db simonw/datasette

This would fetch all files from the main branch into a files table.

Additional options could handle things like pulling files from a branch or tag, or just pulling files that match a specific glob or that exist in a specific directory.

@simonw simonw added the enhancement New feature or request label Nov 29, 2020
@simonw
Copy link
Collaborator Author

simonw commented Nov 30, 2020

Given rate limits (see #51) this command might be better implemented by running a git clone into a temporary directory - doing so would retrieve all of the files in one go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant