Thinko's command line tools. Based on magic-cli by Slack.
You can add a human-readable description in that list by putting a comment immediately under the #!
line:
#!/usr/bin/env bash
# This line will be shown in the list of commands.
You can also define any extra parameters that are required for the script with a # @param
line for each parameter:
#!/usr/bin/env bash
# This line will be shown in the list of commands.
# @param <command_param> - Longer Description of the Parameter
# @param - If you don’t give a parameter name, a default one will be created for you
If using Ruby, there are some useful helpers available. Description will pulled from commander
definition.
#!/usr/bin/env ruby
#!/usr/bin/env ruby
require_relative 'commando-helpers.rb'
program :description, 'This line will be shown in the list of commands.'
program :version, '1.0.0'
heading program :name
# Or, within a command
command_header(c, options)
This repository includes a Makefile that will install commando
and all of its subcommands into /usr/local/bin
:
make install
You can also use it to uninstall commando
:
make uninstall
An example script for updating the tools is also included; it makes installing the latest tools into a single step process:
commando update
Updated tools to 01ec2ef (2016-03-30 16:20:30 -0700)