cbfstool

package
v0.0.0-...-93ebdcc Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Support for CLI tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJsonData

func GetJsonData(u string, into interface{}) error

func GetTemplate

func GetTemplate(ttext, filename, tdefault string) *template.Template

func MaybeFatal

func MaybeFatal(err error, msg string, args ...interface{})

func ParseURL

func ParseURL(ustr string) *url.URL

func ToolMain

func ToolMain(commands map[string]Command)

func Verbose

func Verbose(v bool, f string, a ...interface{})

Types

type Command

type Command struct {
	Nargs  int
	F      func(url string, args []string)
	Argstr string
	Flags  *flag.FlagSet
}

func (Command) Usage

func (c Command) Usage(name string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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