glab icon indicating copy to clipboard operation
glab copied to clipboard

Support for snippets

Open darix opened this issue 4 years ago • 8 comments

creating/listing/deleting would be nice

and for creating something like somecommand | glab snippet new - would be nice.

darix avatar Oct 12 '21 02:10 darix

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.

clemsbot avatar Nov 12 '21 02:11 clemsbot

+1 for this

georgexsh avatar Feb 07 '22 12:02 georgexsh

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

zemzale avatar Feb 08 '22 14:02 zemzale

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?

Lucas-C avatar Feb 09 '22 13:02 Lucas-C

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.

clemsbot avatar Mar 12 '22 02:03 clemsbot

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

zemzale avatar Mar 16 '22 18:03 zemzale

Wow, great, thanks for working on this @zemzale !

Lucas-C avatar Mar 16 '22 21:03 Lucas-C

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.

clemsbot avatar Apr 16 '22 02:04 clemsbot