conan

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConanNotFound = errors.New("conan not found")
View Source
var ErrConanReport = errors.New("conan report error")
View Source
var ErrGetConanVersionFail = errors.New("get conan command version failed")
View Source
var ErrReadConanJsonFail = errors.New("read conan json failed")
View Source
var ErrRootNodeNotFound = errors.New("can't found root node in conan info graph")

Functions

func ExecuteConanInfoCmd

func ExecuteConanInfoCmd(ctx context.Context, conanPath string, dir string) (string, error)

func GetConanVersion

func GetConanVersion(ctx context.Context, conanPath string) (string, error)

func LocateConan

func LocateConan(ctx context.Context) (string, error)

Types

type CmdInfo

type CmdInfo struct {
	Path    string `json:"path"`
	Version string `json:"version"`
}

func (CmdInfo) String

func (c CmdInfo) String() string

type Inspector

type Inspector struct{}

func (*Inspector) CheckDir

func (*Inspector) CheckDir(dir string) bool

func (*Inspector) InspectProject

func (*Inspector) InspectProject(ctx context.Context) error

func (*Inspector) String

func (*Inspector) String() string

func (*Inspector) SupportFeature

func (i *Inspector) SupportFeature(feature model.InspectorFeature) bool

Jump to

Keyboard shortcuts

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