api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// LintConfig is the lint configuration.
	Lint LintConfig `json:"lint" yaml:"lint" env:"EASYP_LINT"`

	// Deps is the dependencies repositories
	Deps []string `json:"deps" yaml:"deps" env:"EASYP_DEPS"`
}

Config is the configuration of easyp.

type Handler

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

Handler is an interface for a handling command.

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 LintConfig

type LintConfig struct {
	Use []string `json:"use" yaml:"use" env:"USE"`
}

LintConfig contains linter configuration.

type Mod

type Mod struct{}

Mod is a handler for package manager

func (Mod) Action

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

func (Mod) Command

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

Jump to

Keyboard shortcuts

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