cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cli contains the command line interface, defines related parameters and validates them

Index

Constants

This section is empty.

Variables

View Source
var (
	Args = os.Args
	// Reserved defines the default amount of plots to reserve
	Reserved uint64 = 0
)

Functions

This section is empty.

Types

type Context

type Context struct {
	// Reserved represents the amount of plots to be reserved
	Reserved uint64
	Path     string
	// Verbose mode
	Verbose bool
	// Done indicates that we are done (--help, --version...)
	Done bool
}

Context describes the environment of the tool execution

func RunCli

func RunCli(writer io.Writer, version string) (*Context, error)

RunCli starts the cli which includes validation of parameters.

Jump to

Keyboard shortcuts

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