commands.go
package main
import (
"fmt"
"os"
"github.com/DaveBlooman/linkey/command"
"github.com/codegangsta/cli"
)
var GlobalFlags = []cli.Flag{}
var Commands = []cli.Command{
{
Name: "check",
Usage: "",
Action: command.CmdCheck,
Flags: []cli.Flag{},
},
}
func CommandNotFound(c *cli.Context, command string) {
fmt.Fprintf(os.Stderr, "%s: '%s' is not a %s command. See '%s --help'.", c.App.Name, command, c.App.Name, c.App.Name)
os.Exit(2)
}