Skip to content

Instantly share code, notes, and snippets.

@mjgartendev
Created May 25, 2018 02:17
Show Gist options
  • Save mjgartendev/38fa6eae56cfa6627c99d20b4f49f87a to your computer and use it in GitHub Desktop.
Save mjgartendev/38fa6eae56cfa6627c99d20b4f49f87a to your computer and use it in GitHub Desktop.
markdown docs of Cacher CLI snippets:add command

Cacher Add Snipper CLI Commands

USAGE

cacher snippets:add [FILENAME]

OPTIONS

    -d, --description=description  snippet description
    -f, --filename=filename        filename for content (will override name of file passed in)
    -m, --team=team                screenname of team library that snippet will be created in
    -q, --quiet                    minimal feedback
    -t, --title=title              snippet title
    -u, --public                   save as public snippet

EXAMPLES

    cacher snippets:add
    ? Snippet title: Example from System Clipboard
    ? Description: Snippet created from contents in the clipboard.
    ? Filename: my_file_from_clipboard.md
    cacher snippets:add ~/MyCode/example.rb
    ? Snippet title: Example for CLI
    ? Description: This is an example for the Cacher CLI.
    cacher snippets:add --filename=my_file_from_clipboard.md \
        --title="Public example from System Clipboard" \
        --description="Snippet created from contents in the clipboard" \
        --team=cacher-dev-ops --public --quiet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment