info

package
v2.28.0-1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 11 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 {
	Path string `json:"path"`
}

type ConfigFinder

type ConfigFinder interface {
	Find(wd, configFilePath string, globalConfigFilePaths ...string) (string, error)
	Finds(wd, configFilePath string) []string
}

type Controller

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

func New

func New(fs afero.Fs, finder ConfigFinder, rt *rt.Runtime) *Controller

func (*Controller) Info

func (c *Controller) Info(_ context.Context, _ *logrus.Entry, param *config.Param) error

type Info

type Info struct {
	Version     string            `json:"version"`
	CommitHash  string            `json:"commit_hash"`
	OS          string            `json:"os"`
	Arch        string            `json:"arch"`
	AquaGOOS    string            `json:"aqua_goos,omitempty"`
	AquaGOARCH  string            `json:"aqua_goarch,omitempty"`
	PWD         string            `json:"pwd"`
	RootDir     string            `json:"root_dir"`
	Env         map[string]string `json:"env"`
	ConfigFiles []*Config         `json:"config_files"`
}

Jump to

Keyboard shortcuts

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