api

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TextFormat = "text"
	JSONFormat = "json"
)

Format is the format of output.

Variables

View Source
var (
	ErrBreakingCheckIssue = errors.New("has breaking check issue")
)
View Source
var (
	ErrHasLintIssue = errors.New("has lint issue")
)
View Source
var (
	ErrPathNotAbsolute = errors.New("path is not absolute")
)

Functions

This section is empty.

Types

type BreakingCheck added in v0.7.0

type BreakingCheck struct{}

BreakingCheck is a handler for breaking command

func (BreakingCheck) Action added in v0.7.0

func (b BreakingCheck) Action(ctx *cli.Context) error

func (BreakingCheck) Command added in v0.7.0

func (b BreakingCheck) Command() *cli.Command

type Completion added in v0.3.0

type Completion struct{}

func (Completion) Command added in v0.3.0

func (c Completion) Command() *cli.Command

type EnumValue added in v0.6.0

type EnumValue struct {
	Enum    []string
	Default string
	// contains filtered or unexported fields
}

func (*EnumValue) Set added in v0.6.0

func (e *EnumValue) Set(value string) error

func (EnumValue) String added in v0.6.0

func (e EnumValue) String() string

type Generate added in v0.4.0

type Generate struct{}

Generate is a handler for generate command.

func (Generate) Action added in v0.4.0

func (g Generate) Action(ctx *cli.Context) error

Action implements Handler.

func (Generate) Command added in v0.4.0

func (g Generate) Command() *cli.Command

Command implements Handler.

type Handler

type Handler interface {
	// Command returns a command.
	Command() *cli.Command
}

Handler is an interface for a handling command.

type Init added in v0.3.0

type Init struct{}

Init is a handler for initialization EasyP configuration.

func (Init) Action added in v0.3.0

func (i Init) Action(ctx *cli.Context) error

Action implements Handler.

func (Init) Command added in v0.3.0

func (i Init) Command() *cli.Command

Command implements Handler.

type Lint

type Lint struct{}

Lint is a handler for lint command.

func (Lint) Action

func (l Lint) Action(ctx *cli.Context) error

Action implements Handler.

func (Lint) Command

func (l Lint) Command() *cli.Command

Command implements Handler.

type Mod

type Mod struct{}

Mod is a handler for package manager

func (Mod) Command

func (m Mod) Command() *cli.Command

func (Mod) Download added in v0.3.0

func (m Mod) Download(ctx *cli.Context) error

func (Mod) Update added in v0.5.0

func (m Mod) Update(ctx *cli.Context) error

func (Mod) Vendor added in v0.7.0

func (m Mod) Vendor(ctx *cli.Context) error

Jump to

Keyboard shortcuts

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