Documentation
¶
Index ¶
- Variables
- func CompareHashes(hash1, hash2 []byte) (bool, error)
- func ContainsString(slice []string, item string) bool
- func CreateShortcut(profilepaths []string, name string, path string, shell string) error
- func CreateTempFile(merged string) (string, error)
- func EncodeCommand(command string) (string, error)
- func ExecuteCommandWithPowershell(encodedCmd string) error
- func ExecuteInsideShell(encodedCmd string) error
- func ExtractString(input string, pattern string) (string, error)
- func GenerateUniqueID() string
- func GetProfileContent(path string) (string, error)
- func GetProfileProperties(path string) (types.ProfileItem, error)
- func GetWindowSize() (int, int)
- func LaunchProfilesFromCmd(profiles string, shell string) error
- func LoadProfileContent(profilePath string) (string, error)
- func LoadProfilesFromDir() ([]types.ProfileItem, error)
- func LoadShells() ([]types.ShellItem, error)
- func MergeSelectedProfiles(selected []string) string
- func NormalizeString(s string) string
- func SplitProfiles(profiles string) []string
- func ValidateDescription(description string) (bool, error)
- func ValidateHash(expectedHash, filePath string) (bool, error)
- func ValidatePath(path string) (bool, error)
- func ValidateShellVersion(shellVersion string) (bool, error)
- type Config
- type ConfigStore
- type DefaultHashValidator
- type HashValidator
- type Profile
- type Shortcut
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigStoreData []ConfigStore
View Source
var UserConfigDir string
Functions ¶
func CompareHashes ¶
func ContainsString ¶
func CreateShortcut ¶
func CreateTempFile ¶
create temp file with merged profiles
func EncodeCommand ¶
func ExecuteInsideShell ¶ added in v0.0.3
func GenerateUniqueID ¶ added in v0.0.3
func GenerateUniqueID() string
func GetProfileContent ¶
func GetProfileProperties ¶
func GetProfileProperties(path string) (types.ProfileItem, error)
func GetWindowSize ¶
func LaunchProfilesFromCmd ¶
func LoadProfileContent ¶
func LoadProfilesFromDir ¶
func LoadProfilesFromDir() ([]types.ProfileItem, error)
func LoadShells ¶
func MergeSelectedProfiles ¶
func NormalizeString ¶
func SplitProfiles ¶
func ValidateDescription ¶
func ValidateHash ¶
func ValidatePath ¶
func ValidateShellVersion ¶
Types ¶
type Config ¶
type Config struct { Profile struct { Path string `mapstructure:"path"` Recursive bool `mapstructure:"recursive"` } `mapstructure:"profile"` Logging struct { Path string `mapstructure:"path"` File string `mapstructure:"file"` Level string `mapstructure:"level"` } `mapstructure:"logging"` Shortcuts []Shortcut `mapstructure:"shortcuts"` }
func LoadConfig ¶
type ConfigStore ¶
type DefaultHashValidator ¶
type DefaultHashValidator struct{}
func (DefaultHashValidator) ValidateHash ¶
func (d DefaultHashValidator) ValidateHash(expectedHash, filePath string) (bool, error)
type HashValidator ¶
Click to show internal directories.
Click to hide internal directories.