Support for snippets
creating/listing/deleting would be nice
and for creating something like somecommand | glab snippet new - would be nice.
This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.
+1 for this
I am gonna slowly started working on this. Won't be very fast since I don't have that much time to work on this, but I hope for some slow and steady progress
I'd love to have this feature too!
Given that Drag and Drop is not implemented for now on Gitlab side, I'd be great to be able to glab snippet new file1.py file2.rb in order to quickly create a snippet ! And to update it: glab snippet updatefile1.py file2.rb maybe?
This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.
So I have created the initial support for adding snippets, but that only works for a single file, because the GitLab API library didn't support it when writing the initial PR, but it does now since I added that there. So there are a few things to do
- [ ] Update the GitLab API library to the newest version to support multiple file uploads
- [ ] Add the support for multiple files in the create command
- [ ] Add missing commands
- [ ] Update command
- [ ] View command
- [ ] Delete command
Wow, great, thanks for working on this @zemzale !
This issue has been automatically marked as stale because it has not had recent activity. We haven't had the time to address it yet, but we want to keep it open. This message is just a reminder for us to help triage issues.