cbfstool

package
Version: v0.0.0-...-51bd07d Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2014 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)

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL