language

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposerDotJSON

type ComposerDotJSON struct {
	Autoload   ComposerDotJSONAutoload `json:"autoload"`
	Require    map[string]string       `json:"require"`
	RequireDev map[string]string       `json:"require-dev"`
}

ComposerDotJSON is the structure of the composer.json file

type ComposerDotJSONAutoload

type ComposerDotJSONAutoload struct {
	PSR0 map[string]string `json:"psr-0"`
	PSR4 map[string]string `json:"psr-4"`
}

ComposerDotJSONAutoload is the autoload struct for the composer.json file

type ComposerDotJSONConfig

type ComposerDotJSONConfig struct {
	BinDir string `json:"bin-dir"`
}

ComposerDotJSONConfig is the config struct for the composer.json file

type Go

type Go struct {
	Enabled bool
	Targets map[string]string
	// contains filtered or unexported fields
}

Go is the state of the go project

func NewGo

func NewGo() (*Go, error)

NewGo generates a ready-to-use StateGo

func (*Go) ModPath added in v0.0.11

func (languageGo *Go) ModPath() string

ModPath gets the go mod path

func (*Go) ModRequired

func (languageGo *Go) ModRequired(modPath string) bool

ModRequired checks if a module is required

func (*Go) Version

func (languageGo *Go) Version() string

Version gets the go version

type Npm

type Npm struct {
	Enabled bool
	// contains filtered or unexported fields
}

Npm is the state of the npm project

func NewNpm

func NewNpm() (*Npm, error)

NewNpm generates a ready-to-use StateNpm

func (Npm) HasDependency

func (languageNpm Npm) HasDependency(targetName string) bool

HasDependency checks if the project has a dependency

func (Npm) HasScript

func (languageNpm Npm) HasScript(targetName string) bool

HasScript checks if a script is defined

type PHP

type PHP struct {
	Enabled bool
	// contains filtered or unexported fields
}

PHP is the state of the php project

func NewPHP

func NewPHP() (*PHP, error)

NewPHP generates a ready-to-use StatePHP

func (PHP) IsSymfony3

func (languagePHP PHP) IsSymfony3() bool

IsSymfony3 checks if the project is a symfony 3.4 project or not

type PackageDotJSON

type PackageDotJSON struct {
	Dependencies    map[string]string `json:"dependencies"`
	DevDependencies map[string]string `json:"devDependencies"`
	Scripts         map[string]string `json:"scripts"`
}

PackageDotJSON is the structure of the package.json file

type PackageLockDotJSON

type PackageLockDotJSON struct {
	Dependencies map[string]interface{} `json:"dependencies"`
}

PackageLockDotJSON is the structure of the package-lock.json file

Jump to

Keyboard shortcuts

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