cmd

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string

Functions

func Execute

func Execute() error

func NewDeduplicateCmd

func NewDeduplicateCmd(out io.Writer) *cli.Command

func NewRootCmd

func NewRootCmd(out io.Writer) *cli.Command

func NewRunCmd

func NewRunCmd(out io.Writer) *cli.Command

Types

type DeduplicateConfig

type DeduplicateConfig struct {
	RootConfig
	// contains filtered or unexported fields
}

func (*DeduplicateConfig) Exec

func (c *DeduplicateConfig) Exec(ctx context.Context, args []string) error

func (*DeduplicateConfig) RegisterFlags

func (c *DeduplicateConfig) RegisterFlags(fs *flag.FlagSet)

type RootConfig

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

func (*RootConfig) Exec

func (c *RootConfig) Exec(ctx context.Context, args []string) error

func (*RootConfig) RegisterFlags

func (c *RootConfig) RegisterFlags(fs *flag.FlagSet)

type RunConfig

type RunConfig struct {
	RootConfig

	ServerHost string
	ServerPort string

	LogLevel  string
	LogFormat string
	// contains filtered or unexported fields
}

func (*RunConfig) Exec

func (c *RunConfig) Exec(ctx context.Context, args []string) error

func (*RunConfig) RegisterFlags

func (c *RunConfig) RegisterFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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