lab

Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab

View the Project on GitHub zaquestion/lab

lab snippet create

Create a personal or project snippet

Synopsis

Source snippets from stdin, file, or in editor from scratch.

lab snippet create [remote] [flags]

Examples

lab snippet create
lab snippet create snippet_file.txt
lab snippet create -n "potato.go for GoLang"
lab snippet create -m "Snippet example" -M "Description message"
lab snippet create upstream --private
lab snippet create origin --public

Options

  -h, --help                  help for create
  -m, --message stringArray   use the given <msg>; multiple -m are concatenated as separate paragraphs (default [-])
  -n, --name string           name snippet to add code highlighting
  -p, --private               make snippet private; visible only to project members (default: internal)
      --public                make snippet public; can be accessed without any authentication (default: internal)

Options inherited from parent commands

      --debug      Enable debug logging level
  -g, --global     create as a personal snippet
      --no-pager   Do not pipe output into a pager
      --quiet      Turn off any sort of logging. Only command output is printed

SEE ALSO

Auto generated by spf13/cobra on 3-Jul-2022