Skip to content

Commit

Permalink
Projsnip (#11)
Browse files Browse the repository at this point in the history
* add support for using Project Snippets

* fix help indentation
  • Loading branch information
bradwood authored Jan 18, 2022
1 parent 5c19bf0 commit 7fef903
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var cfgFile, profile string
var cfgFileFound bool = true

var rootCmd = &cobra.Command{
Version: "0.3.0",
Version: "0.3.1",
Use: "glsnip",
Short: "Copy and paste using GitLab Snippets",
Long: `This app behaves like pbcopy(1) and pbpaste(1) on a Mac, or like xclip(1) on
Expand All @@ -41,12 +41,15 @@ Configuration:
gitlab_url: https://url.of.work.server/
token: USERTOKENWORK
clipboard_name: glsnip
project_id: 12345678
project_id: 12345678
...
If you set the project_id in a server profile, a project-based Gitlab Snippet
API will be used.
If you set the project_id in a server profile, a project-based Gitlab Snippet
API will be used.
Environment variables:
Instead of using a configuration file, you may set environment variables by
prefixing the key in a configuration file block with GLSNIP_ and then
Expand Down

0 comments on commit 7fef903

Please sign in to comment.