cli

package
v0.0.0-...-261a1ea Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate() *cobra.Command

func New

func New() *cobra.Command

Types

type Context

type Context struct {
	Archs    []string
	Baseurl  string
	Reponame string
	Output   string
	DB       types.Database
}

func NewContext

func NewContext(opts ...Option) (*Context, error)

func (*Context) ProcessDir

func (c *Context) ProcessDir(dir string) error

func (*Context) Run

func (c *Context) Run(args []string) error

type Option

type Option func(*Context) error

func WithArchs

func WithArchs(archs []string) Option

func WithBaseurl

func WithBaseurl(baseUrl string) Option

func WithOutput

func WithOutput(output string) Option

func WithReponame

func WithReponame(repoName string) Option

Jump to

Keyboard shortcuts

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