cli

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImageIds []string
)

Functions

This section is empty.

Types

type Options

type Options struct {
	Gif           bool
	Bottom        string
	ClientID      string
	Help          bool
	Image         string
	ImageType     string
	OutName       string
	Shake         bool
	Top           string
	Trigger       bool
	ListTemplates bool
}

Options holds the options passed on the command line.

func ParseOptions

func ParseOptions() Options

ParseOptions parses the command line options.

func (*Options) PrintUsage

func (opt *Options) PrintUsage()

PrintUsage prints who to use this command.

func (*Options) Valid

func (opt *Options) Valid() bool

Valid validates the command line options and returns true if they are valid, false if not.

Jump to

Keyboard shortcuts

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