cli

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthApplication

type AuthApplication struct {
	application.Application
}

AuthApplication implements the application.Application interface as a commandline application to initiate a Flickr API authorization flow. This application will launch a background HTTP process to receive authorization callback requests (from Flickr) and block execution, using channels, until an authorization request is approved or triggers and error.

func (*AuthApplication) DefaultFlagSet

func (app *AuthApplication) DefaultFlagSet() *flag.FlagSet

Return the default FlagSet necessary for the AuthApplication to run.

func (*AuthApplication) Run

func (app *AuthApplication) Run(ctx context.Context) (interface{}, error)

Invoke the AuthApplication with its default FlagSet.

func (*AuthApplication) RunWithFlagSet

func (app *AuthApplication) RunWithFlagSet(ctx context.Context, fs *flag.FlagSet) (interface{}, error)

Invoke the AuthApplication with a custom FlagSet.

Jump to

Keyboard shortcuts

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