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

"Sync" gist: extend "update" to also remove files no longer present #314

Open
aseemk opened this issue Mar 3, 2020 · 0 comments
Open

"Sync" gist: extend "update" to also remove files no longer present #314

aseemk opened this issue Mar 3, 2020 · 0 comments

Comments

@aseemk
Copy link

aseemk commented Mar 3, 2020

It'd be great to be able to sync a gist to a folder or list of files. --update can do most of this (add new files + update existing files); the only thing missing is removing files no longer present or specified.

A simple way to achieve this would to list the gist's files first (that functionality would be helpful on its own; issue #287) and match by filename. The Gist API then supports specifying a null file to delete it:

https://developer.github.com/v3/gists/#edit-a-gist

Thanks for the consideration!

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

No branches or pull requests

1 participant