Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

altbizney/commando

 
 

Repository files navigation

Commando

Thinko's command line tools. Based on magic-cli by Slack.

Customization

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)

Installation

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

Updates

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)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 85.8%
  • JavaScript 11.4%
  • Makefile 2.8%