Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab
Create a personal or project snippet
Source snippets from stdin, file, or in editor from scratch.
lab snippet create [remote] [flags]
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
-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)
--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