scripttype

package
v0.5.9 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RangesMap = map[Variant]*ScriptDefault{
		Uninitialized: {
			ScriptType:    Uninitialized,
			IsImplemented: false,
		},
		Shell: {
			ScriptType:  Shell,
			ProcessName: constants.BinShellCmd,
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: true,
		},
		Bash: {
			ScriptType:  Bash,
			ProcessName: constants.BashDefaultPath,
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: true,
		},
		Perl: {
			ScriptType:  Perl,
			ProcessName: "perl",
			DefaultArguments: []string{
				"-e",
			},
			IsImplemented: true,
		},
		Python: {
			ScriptType:  Python,
			ProcessName: "python",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: false,
		},
		Python2: {
			ScriptType:  Python2,
			ProcessName: "python2",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: false,
		},
		Python3: {
			ScriptType:  Python3,
			ProcessName: "python3",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: true,
		},
		CLang: {
			ScriptType:  CLang,
			ProcessName: "gcc",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: false,
		},
		MakeScript: {
			ScriptType:  MakeScript,
			ProcessName: "python3",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: false,
		},
		Powershell: {
			ScriptType:  Powershell,
			ProcessName: "pwsh",
			DefaultArguments: []string{
				constants.NonInteractiveFlag,
			},
			IsImplemented: true,
		},
		Cmd: {
			ScriptType:  Cmd,
			ProcessName: "cmd",
			DefaultArguments: []string{
				"/c",
			},
			IsImplemented: true,
		},
	}
)

Functions

This section is empty.

Types

type ScriptDefault

type ScriptDefault struct {
	ScriptType       Variant
	ProcessName      string
	DefaultArguments []string
	IsImplemented    bool
}

func (*ScriptDefault) String

func (receiver *ScriptDefault) String() string

type Variant

type Variant byte
const (
	Uninitialized Variant = iota
	Shell
	Bash
	Perl
	Python
	Python2
	Python3
	CLang
	MakeScript
	Powershell
	Cmd
)

func (*Variant) AsBasicByteEnumContractsBinder

func (receiver *Variant) AsBasicByteEnumContractsBinder() coreinterface.BasicByteEnumContractsBinder

func (*Variant) AsBasicEnumContractsBinder

func (receiver *Variant) AsBasicEnumContractsBinder() coreinterface.BasicEnumContractsBinder

func (*Variant) MarshalJSON

func (receiver *Variant) MarshalJSON() ([]byte, error)

func (*Variant) MaxByte

func (receiver *Variant) MaxByte() byte

func (*Variant) MinByte

func (receiver *Variant) MinByte() byte

func (*Variant) Name added in v0.5.3

func (receiver *Variant) Name() string

func (*Variant) RangesByte

func (receiver *Variant) RangesByte() []byte

func (*Variant) RangesVariants

func (receiver *Variant) RangesVariants() []Variant

func (*Variant) ScriptDefault

func (receiver *Variant) ScriptDefault() *ScriptDefault

func (*Variant) String

func (receiver *Variant) String() string

func (*Variant) ToNumberString added in v0.5.3

func (receiver *Variant) ToNumberString() string

func (*Variant) UnmarshalJSON

func (receiver *Variant) UnmarshalJSON(data []byte) error

func (*Variant) UnmarshallEnumToValue added in v0.5.3

func (receiver *Variant) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)

func (*Variant) ValueByte

func (receiver *Variant) ValueByte() byte

Jump to

Keyboard shortcuts

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