DaveBlooman/linkey

View on GitHub
commands.go

Summary

Maintainability
A
0 mins
Test Coverage
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)
}