shared

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPrefix         = "--"
	FlagValueSeparator = "="
)

Flag constants

Variables

This section is empty.

Functions

func Delete added in v0.0.5

func Delete(path string) error

func FileExists added in v0.0.5

func FileExists(path string) bool

FileExists Checks if a file/directory exists

func GetCommandArgument

func GetCommandArgument() string

GetCommandArgument Gets the command argument for the software

func GetExecutionPath added in v0.0.5

func GetExecutionPath() string

GetExecutionPath gets executable path

func GetFlagArrayValue

func GetFlagArrayValue(flag string) []string

GetFlagArrayValue Gets a array of values of a flag from the command line arguments

func GetFlagSwitch

func GetFlagSwitch(flag string, defaultValue bool) bool

GetFlagSwitch Gets a switch value of a flag from the command line arguments

func GetFlagValue

func GetFlagValue(flag string, defaultValue string) string

GetFlagValue Gets a value of a flag from the command line arguments

func GetModuleArgument

func GetModuleArgument() string

GetModuleArgument Gets the module argument for the software

func JoinPath added in v0.0.5

func JoinPath(items ...string) string

JoinPath combines strings into a full path

func MapFlagValue

func MapFlagValue(flag string) (string, string)

MapFlagValue Maps Keypair values from the flag

func ToOsPath added in v0.0.5

func ToOsPath(path string) string

ToOsPath Converts a path into the native os path

Types

type Startup added in v0.0.5

type Startup struct {
}

Jump to

Keyboard shortcuts

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