command

package
v1.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory interface {
	NewClient() uauthsvc.UserAuthenticationService
}

TODO: Refactor this elsewhere... too tired right now and I want to start the checker tests.

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(myName string, factory ClientFactory, log *zap.Logger) *Command

func (*Command) Exec

func (c *Command) Exec(ctx context.Context, req *proto.ExecRequest, rsp *proto.ExecResponse) error

Exec executes the command

func (*Command) Help

func (c *Command) Help(ctx context.Context, req *proto.HelpRequest, rsp *proto.HelpResponse) error

Help returns the command usage

Jump to

Keyboard shortcuts

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