cb

command
v0.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

target type information and support routines These are the steps to create a new target:

  1. choose the target name
  2. create a go source file for it less than 8 characters in length with a "t" prefix. If it absolutely must be longer than 8 characters, that is ok.
  3. create a structure for the target that subclasses the TargetBase structure.
  4. fill in the target name, information and brief description the brief text is used in the help so it should be short the info text is the help displayed when the user types "help <target>"
  5. create the interface functions defined in the TargetInterface interface and fill them in.
  6. create the init() function to add the target to global Targets map when the program starts up

See the online help (-h) for detailed information. To learn how to add a target see the documentation in target.go.

Do all of the recipe stuff.

The run target.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL