Help us shape the future of Go! Take the 2026 Go Developer Survey

cliutil

package
v0.57.7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UtilArgs

type UtilArgs struct {

	// ObjectRef is the object ref string.
	ObjectRef string
	// contains filtered or unexported fields
}

UtilArgs contains the utility arguments and functions.

func (*UtilArgs) BuildCommands

func (a *UtilArgs) BuildCommands() []*ucli.Command

BuildCommands attaches the commands.

func (*UtilArgs) BuildFlags

func (a *UtilArgs) BuildFlags() []ucli.Flag

BuildFlags attaches the flags to a flag set.

func (*UtilArgs) GetContext

func (a *UtilArgs) GetContext() context.Context

GetContext returns the context.

func (*UtilArgs) GetLogger

func (a *UtilArgs) GetLogger() *logrus.Entry

GetLogger returns the log entry

func (*UtilArgs) RunGenerateRabinPoly

func (a *UtilArgs) RunGenerateRabinPoly(cctx *ucli.Context) error

RunGenerateRabinPoly generates a rabin polynomial.

func (*UtilArgs) RunParseObjectRef

func (a *UtilArgs) RunParseObjectRef(cctx *ucli.Context) error

RunParseObjectRef parses the object ref provided.

func (*UtilArgs) SetContext

func (a *UtilArgs) SetContext(c context.Context)

SetContext sets the context.

func (*UtilArgs) SetLogger

func (a *UtilArgs) SetLogger(le *logrus.Entry)

SetLogger sets the root log entry.

Jump to

Keyboard shortcuts

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