Skip to content

Instantly share code, notes, and snippets.

@jpscharf
Created July 28, 2015 15:08
Show Gist options
  • Save jpscharf/8c3cf4cc77eb121b222b to your computer and use it in GitHub Desktop.
Save jpscharf/8c3cf4cc77eb121b222b to your computer and use it in GitHub Desktop.

Revisions

  1. jpscharf created this gist Jul 28, 2015.
    15 changes: 15 additions & 0 deletions test-dokku-help-format.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #!/usr/bin/env bash
    PLUGIN_COMMANDS="
    new-help,Print the list of commands
    new-plugins,Print active plugins
    new-plugins-install,Install active plugins
    new-plugins-update,Update active plugins
    old-help Print the list of commands
    old-plugins Print active plugins
    old-plugins-install Install active plugins
    old-plugins-update Update active plugins
    "

    cat<<EOF | echo "$PLUGIN_COMMANDS" | sort | column -c2 -t -s,
    EOF