Documentation ¶
Index ¶
- Variables
- func RangesInvalidErr() error
- type ScriptDefault
- type Variant
- func (it Variant) AllNameValues() []string
- func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
- func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
- func (it *Variant) DefaultArgs() []string
- func (it Variant) EnumType() enuminf.EnumTyper
- func (it Variant) Format(format string) (compiled string)
- func (it Variant) IntegerEnumRanges() []int
- func (it Variant) IsAnyNamesOf(names ...string) bool
- func (it Variant) IsAnyOf(anyOfItems ...Variant) bool
- func (it Variant) IsAnyPython() bool
- func (it Variant) IsAnyValuesEqual(anyByteValues ...byte) bool
- func (it Variant) IsBash() bool
- func (it Variant) IsByteValueEqual(value byte) bool
- func (it Variant) IsCLang() bool
- func (it Variant) IsCmd() bool
- func (it Variant) IsCmdOrPowershell() bool
- func (it Variant) IsDefault() bool
- func (it Variant) IsDefaultOsScriptType() bool
- func (it *Variant) IsImplemented() bool
- func (it Variant) IsInvalid() bool
- func (it *Variant) IsInvalidImplement() bool
- func (it Variant) IsMakeScript() bool
- func (it Variant) IsNameEqual(name string) bool
- func (it Variant) IsPerl() bool
- func (it Variant) IsPowershell() bool
- func (it Variant) IsPowershellOrShell() bool
- func (it Variant) IsPowershellOrShellOrBash() bool
- func (it Variant) IsPython() bool
- func (it Variant) IsPython2() bool
- func (it Variant) IsPython3() bool
- func (it Variant) IsShell() bool
- func (it Variant) IsShellOrBash() bool
- func (it Variant) IsUninitialized() bool
- func (it Variant) IsValid() bool
- func (it Variant) IsValueEqual(value byte) bool
- func (it *Variant) MarshalJSON() ([]byte, error)
- func (it *Variant) MaxByte() byte
- func (it Variant) MaxInt() int
- func (it Variant) MaxValueString() string
- func (it *Variant) MinByte() byte
- func (it Variant) MinInt() int
- func (it Variant) MinMaxAny() (min, max interface{})
- func (it Variant) MinValueString() string
- func (it Variant) Name() string
- func (it Variant) NameValue() string
- func (it Variant) OnlySupportedErr(names ...string) error
- func (it Variant) OnlySupportedMsgErr(message string, names ...string) error
- func (it Variant) OsDefaultScriptType() Variant
- func (it *Variant) ProcessName() string
- func (it Variant) RangeNamesCsv() string
- func (it *Variant) RangesByte() []byte
- func (it Variant) RangesDynamicMap() map[string]interface{}
- func (it *Variant) RangesVariants() []Variant
- func (it *Variant) ScriptDefault() *ScriptDefault
- func (it Variant) String() string
- func (it *Variant) ToNumberString() string
- func (it Variant) ToPtr() *Variant
- func (it Variant) TypeName() string
- func (it *Variant) UnmarshalJSON(data []byte) error
- func (it *Variant) UnmarshallEnumToValue(jsonUnmarshallingValue []byte) (byte, error)
- func (it Variant) ValueByte() byte
- func (it Variant) ValueInt() int
- func (it Variant) ValueInt16() int16
- func (it Variant) ValueInt32() int32
- func (it Variant) ValueInt8() int8
- func (it Variant) ValueString() string
- func (it Variant) ValueUInt16() uint16
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RangesMap = map[Variant]*ScriptDefault{ Invalid: { ScriptType: Invalid, }, Default: { ScriptType: Default, ProcessName: "", DefaultArguments: []string{ constants.NonInteractiveFlag, }, }, 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{ constants.NonInteractivePerlFlag, }, 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: true, }, Powershell: { ScriptType: Powershell, ProcessName: "pwsh", DefaultArguments: []string{ constants.NonInteractiveFlag, }, IsImplemented: true, }, Cmd: { ScriptType: Cmd, ProcessName: "cmd", DefaultArguments: []string{ constants.NonInteractiveCmdFlag, }, IsImplemented: true, }, } BasicEnumImpl = enumimpl.New.BasicByte.UsingFirstItemSliceAliasMap( Invalid, scriptTypeStringRanges[:], aliasMap) )
Functions ¶
func RangesInvalidErr ¶ added in v0.1.2
func RangesInvalidErr() error
Types ¶
type ScriptDefault ¶
type ScriptDefault struct { ScriptType Variant IsImplemented bool ProcessName string DefaultArguments []string }
func DefaultOsScript ¶
func DefaultOsScript() *ScriptDefault
func (*ScriptDefault) String ¶
func (it *ScriptDefault) String() string
type Variant ¶
type Variant byte
func OsDefaultScriptType ¶ added in v0.1.2
func OsDefaultScriptType() Variant
func (Variant) AllNameValues ¶ added in v0.0.4
func (Variant) AsBasicByteEnumContractsBinder ¶
func (it Variant) AsBasicByteEnumContractsBinder() enuminf.BasicByteEnumContractsBinder
func (Variant) AsBasicEnumContractsBinder ¶
func (it Variant) AsBasicEnumContractsBinder() enuminf.BasicEnumContractsBinder
func (*Variant) DefaultArgs ¶ added in v0.1.2
func (Variant) IntegerEnumRanges ¶ added in v0.0.4
func (Variant) IsAnyNamesOf ¶ added in v0.0.4
func (Variant) IsAnyPython ¶
func (Variant) IsAnyValuesEqual ¶ added in v0.0.4
func (Variant) IsByteValueEqual ¶ added in v0.0.4
func (Variant) IsCmdOrPowershell ¶ added in v0.1.2
func (Variant) IsDefaultOsScriptType ¶ added in v0.1.2
func (*Variant) IsImplemented ¶ added in v0.1.2
func (*Variant) IsInvalidImplement ¶ added in v0.1.2
func (Variant) IsMakeScript ¶
func (Variant) IsNameEqual ¶ added in v0.0.4
func (Variant) IsPowershell ¶
func (Variant) IsPowershellOrShell ¶ added in v0.1.3
func (Variant) IsPowershellOrShellOrBash ¶ added in v0.1.3
func (Variant) IsShellOrBash ¶ added in v0.1.2
func (Variant) IsUninitialized ¶
func (Variant) IsValueEqual ¶ added in v0.0.4
func (*Variant) MarshalJSON ¶
func (Variant) MaxValueString ¶ added in v0.0.4
func (Variant) MinValueString ¶ added in v0.0.4
func (Variant) OnlySupportedErr ¶ added in v0.0.4
func (Variant) OnlySupportedMsgErr ¶ added in v0.0.4
func (Variant) OsDefaultScriptType ¶ added in v0.1.2
func (*Variant) ProcessName ¶ added in v0.1.2
func (Variant) RangeNamesCsv ¶
func (*Variant) RangesByte ¶
func (Variant) RangesDynamicMap ¶ added in v0.0.4
func (*Variant) RangesVariants ¶
func (*Variant) ScriptDefault ¶
func (it *Variant) ScriptDefault() *ScriptDefault
func (*Variant) ToNumberString ¶
func (*Variant) UnmarshalJSON ¶
func (*Variant) UnmarshallEnumToValue ¶
func (Variant) ValueInt16 ¶ added in v0.0.4
func (Variant) ValueInt32 ¶ added in v0.0.4
func (Variant) ValueString ¶ added in v0.0.4
func (Variant) ValueUInt16 ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.