Skip to content

Instantly share code, notes, and snippets.

@GonZo
Created June 17, 2017 20:39
Show Gist options
  • Save GonZo/6144eab482b7ddd0fbc45b8d5710760c to your computer and use it in GitHub Desktop.
Save GonZo/6144eab482b7ddd0fbc45b8d5710760c to your computer and use it in GitHub Desktop.

Revisions

  1. GonZo created this gist Jun 17, 2017.
    25 changes: 25 additions & 0 deletions go.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    "package cli command": {
    "prefix": "clicomm",
    "body": [
    "{"
    "Name: \"${1:Name}\","
    "Usage: \"${2:Usage}\","
    "Description: \"${3:Descrition}\","
    "Subcommands: ${4:Function},"
    "}"
    ],
    "description": "Cli command simple boilerplate"
    },
    "package cli command with action": {
    "prefix": "clicomm",
    "body": [
    "{"
    "Name: \"${1:Name}\","
    "Usage: \"${2:Usage}\","
    "Description: \"${3:Descrition}\","
    "Action: ${4:Interface{}},"

    "}"
    ],
    "description": "Cli command simple boilerplate with action field"
    }