-
-
Notifications
You must be signed in to change notification settings - Fork 163
Support for snippets #872
Comments
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 |
This adds two simple API wrappers for creating snippets for the user and inside the project. This should help us start work with creating a snippets command. Issue profclems#872
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 |
This adds a simple snippet creation command. This currently just allows for creating snippets from STDIN like so: `echo "this is a script" | glab snippet create --title "snippet" --filename "example.py"` There are few things that are missing from this, like ability to add more then one file to the snippet, but that is not supported by the "github.com/xanzy/go-gitlab" yet. Issue is opened for that xanzy/go-gitlab#1372 Issue profclems#872
This adds a simple snippet creation command. This currently just allows for creating snippets from STDIN like so: `echo "this is a script" | glab snippet create --title "snippet" --filename "example.py"` There are few things that are missing from this, like ability to add more then one file to the snippet, but that is not supported by the "github.com/xanzy/go-gitlab" yet. Issue is opened for that xanzy/go-gitlab#1372 Issue profclems#872
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. |
This adds a simple snippet creation command. This currently just allows for creating snippets from STDIN like so: `echo "this is a script" | glab snippet create --title "snippet" --filename "example.py"` There are few things that are missing from this, like ability to add more then one file to the snippet, but that is not supported by the "github.com/xanzy/go-gitlab" yet. Issue is opened for that xanzy/go-gitlab#1372 Issue profclems#872
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
|
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. |
creating/listing/deleting would be nice
and for creating something like
somecommand | glab snippet new -
would be nice.The text was updated successfully, but these errors were encountered: