commands

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version, Revision string
)

Functions

func Run

func Run() error

Types

type ApplyCommand

type ApplyCommand struct {
	Target                string `short:"f" long:"filename" required:"yes"`
	ApplyToExistingEmails bool   `short:"e" long:"apply-to-existing"`
}

func (*ApplyCommand) CredentialsFilePath

func (*ApplyCommand) CredentialsFilePath() string

func (*ApplyCommand) Execute

func (cmd *ApplyCommand) Execute([]string) error

func (*ApplyCommand) RefreshToken

func (*ApplyCommand) RefreshToken() string

type AuthCommand

type AuthCommand struct {
	Port int `short:"p" long:"port" default:"8080" description:"localhost port to listen callback request"`
}

func (*AuthCommand) CredentialsFilePath

func (*AuthCommand) CredentialsFilePath() string

func (*AuthCommand) Execute

func (cmd *AuthCommand) Execute(args []string) error

type Command

type Command struct {
	OutputFormat string `short:"o" long:"output" choice:"yaml" choice:"wide"`

	CredentialsFilePath string `short:"c" long:"credentials-file" description:"path to OAuth credentials file"`
	RefreshToken        string `short:"t" long:"refresh-token" env:"GMAC_REFRESH_TOKEN" description:"OAuth reflesh token"`

	Verbose func() error `long:"verbose" description:"show verbose log"`

	ShowVersion func() error `short:"v" long:"version"`
}

type GetCommand

type GetCommand struct {
}

type GetFilterCommand

type GetFilterCommand struct {
}

func (*GetFilterCommand) CredentialsFilePath

func (*GetFilterCommand) CredentialsFilePath() string

func (*GetFilterCommand) Execute

func (cmd *GetFilterCommand) Execute([]string) error

func (*GetFilterCommand) OutputFormat

func (*GetFilterCommand) OutputFormat() string

func (*GetFilterCommand) RefreshToken

func (*GetFilterCommand) RefreshToken() string

Jump to

Keyboard shortcuts

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