command

package
v0.0.0-...-7dc0ac4 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

08 March 2021

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")
View Source
var WriteBufSize = 10 * 1024 * 1024

Size of the write buffer, that would accumulate the data before writing it onto the destination. 10MB is a reasonable default.

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