opts

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Global

type Global struct {
	NoColor bool
}

Global is a set of global flags

func (*Global) AddToFlagSet

func (g *Global) AddToFlagSet(set *pflag.FlagSet)

AddToFlagSet will add the flags to a flag set

type ScheduleFlags

type ScheduleFlags struct {
	*Global
	Term string
	Year int
	Open bool
}

ScheduleFlags is a collection of flag variables

func (*ScheduleFlags) Install

func (sf *ScheduleFlags) Install(fset *pflag.FlagSet)

Install will install the flags to a flag set

Jump to

Keyboard shortcuts

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