command

package
v0.0.0-...-911f5be Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2016 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

22 october 2015

22 october 2015

23 september 2016

Index

Constants

This section is empty.

Variables

View Source
var DiskSize int64 = -1

DiskSize is passed as the size parameter to disk.Open() when an argument of type ArgDisk is processed.

View Source
var ErrWrongArgCount = fmt.Errorf("wrong number of arguments")

Functions

func ArgUsage

func ArgUsage() string

func FormatUsage

func FormatUsage(commands []*Command) string

func ToFlagUsage

func ToFlagUsage(s string) string

func Validate

func Validate(commands []*Command) (problems []string)

Types

type Arg

type Arg arg
var ArgDEK Arg = argDEK
var ArgDecryptionSteps Arg = argDecryptionSteps
var ArgDisk Arg = argDisk
var ArgInFile Arg = argInFile
var ArgKEK Arg = argKEK
var ArgOutFile Arg = argOutFile
var ArgOutImage Arg = argOutImage

type Command

type Command struct {
	Name        string
	Args        []Arg
	Description string
	Do          interface{}
}

func (*Command) Invoke

func (c *Command) Invoke(args []string) error

Jump to

Keyboard shortcuts

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