command

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	TenantID           string `default:"common" hidden:"" env:"GABBY_TENANT_ID"`
	ClientID           string `default:"77605d92-6a9c-471e-a2d3-48c909b19ec8" hidden:"" env:"GABBY_CLIENT_ID"`
	TokenCacheFilename string `default:"token_cache.json" hidden:"" env:"GABBY_TOKEN_CACHE_FILENAME"`
	Me                 string `-:"" hidden:""`
}

type Impact

type Impact struct {
	Weeks   int      `name:"weeks" short:"w" default:"8" help:"The number of weeks to include in the impact analysis."`
	Include []string `name:"include" short:"i" optional:"" help:"Properties that must be present for an event."`
	Exclude []string `name:"exclude" short:"e" optional:"" help:"Properties that must not be present for an event."`
	Detail  bool     `name:"detail" optional:"" default:"false" help:"Include detail showing the minutes of impact for each week."`
	Pretty  bool     `` /* 159-byte string literal not displayed */
}

func (*Impact) Run

func (i *Impact) Run(ctx Context, api gabby.API, w io.Writer) error

type Name

type Name struct {
	IDs []string `arg:"" name:"ids" help:"IDs to retrieve photos for"`
}

func (*Name) Run

func (p *Name) Run(ctx Context, api gabby.API, w io.Writer) error

type Photo

type Photo struct {
	FromFile              *os.File `help:"read ids from a file, specify stdin with -"`
	IDs                   []string `arg:"" name:"ids" help:"IDs to retrieve photos for" optional:""`
	OutputDirectory       string   `type:"path" default:"./"`
	CropCircle            bool     `default:"false"`
	CropRoundRectangle    bool     `default:"false"`
	CropWidth             int      `default:"200"`
	CropRoundRectangleArc float64  `default:"70"`
}

func (*Photo) Run

func (p *Photo) Run(ctx Context, api gabby.API, w io.Writer) error

Jump to

Keyboard shortcuts

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