info

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 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 (ctrl *Controller) Info(ctx context.Context, logE *logrus.Entry, param *config.Param, cfgFilePath string) error

type Info

type Info struct {
	Version          string            `json:"version"`
	CommitHash       string            `json:"commit_hash"`
	OS               string            `json:"os"`
	Arch             string            `json:"arch"`
	KhulnasoftGOOS   string            `json:"khulnasoft_goos,omitempty"`
	KhulnasoftGOARCH string            `json:"khulnasoft_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