Documentation
¶
Index ¶
- Variables
- func AppendToFile(line string, file string) error
- func CheckIfExists(fileOrDir string) (bool, error)
- func ChkIfCmdRuns(c *exec.Cmd) error
- func Confirm() bool
- func Copy(src, dst string) error
- func CreateDirIfNotExist(dir string)
- func DeleteDirIfEmpty(dir string)
- func DirIsEmpty(dir string) (bool, error)
- func EditSettings(lType, value string)
- func GetFileExtension(filename string) string
- func GetFileFromFullPath(file string) string
- func GetFileFromUrl(url string) string
- func GetFileName(filename string) string
- func GetNameFromUrl(g string) (string, string)
- func GetNativePkgMgr() string
- func GetRepoName(p, pType, g string) string
- func GetRepoRestoreType(pm, repo string) string
- func GetRepoType(s string) string
- func GetWorkPath() string
- func HasWhiteSpace(input string) bool
- func History(pm, p string, sorted bool)
- func IsLocalInstall(filename string) (bool, string, string)
- func IsPPA(p string) bool
- func IsScript(p string) bool
- func IsUrl(p string) bool
- func ListRepo(pm, r string)
- func LogLaunchBanner(version string)
- func NewLine()
- func PrintError(eType string, e error)
- func PrintErrorExit(eType string, e error)
- func PrintErrorMsg(eType string, e string)
- func PrintErrorMsgExit(eType string, e string)
- func RandString(nByte int) (string, error)
- func ReadFileLine(file string, line int) (string, error)
- func RemoveDirRecursive(dir string)
- func RemoveFile(file string)
- func RemoveFileLine(file string, ln int)
- func RunCmd(c *exec.Cmd, msg string)
- func RunCmdQuiet(c *exec.Cmd, msg string)
- func RunCmdReturn(c *exec.Cmd) (string, error)
- func StripExtension(filename, ext string) string
- func TimeStamp(ts bool)
- func UpdateApp()
- func WriteDotDesktop(pkg, icon, file, dest, share string)
- func WriteToFile(line string, file string) error
- type DotDesktop
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorCyan = "\033[36m"
View Source
var ColorGreen = "\033[92m"
View Source
var ColorRed = "\033[91m"
View Source
var ColorReset = "\033[0m"
define text color
View Source
var ColorYellow = "\033[33m"
Functions ¶
func AppendToFile ¶
func CheckIfExists ¶
func ChkIfCmdRuns ¶
func CreateDirIfNotExist ¶
func CreateDirIfNotExist(dir string)
func DeleteDirIfEmpty ¶
func DeleteDirIfEmpty(dir string)
func DirIsEmpty ¶
func EditSettings ¶
func EditSettings(lType, value string)
func GetFileExtension ¶
func GetFileFromFullPath ¶
func GetFileFromUrl ¶
func GetFileName ¶
func GetNameFromUrl ¶
func GetNativePkgMgr ¶
func GetNativePkgMgr() string
func GetRepoName ¶
func GetRepoRestoreType ¶
func GetRepoType ¶
func GetWorkPath ¶
func GetWorkPath() string
func HasWhiteSpace ¶
func RemoveDirRecursive ¶
func RemoveDirRecursive(dir string)
func RemoveFile ¶
func RemoveFile(file string)
func RemoveFileLine ¶
func RunCmdQuiet ¶
func StripExtension ¶
func WriteDotDesktop ¶
func WriteDotDesktop(pkg, icon, file, dest, share string)
func WriteToFile ¶
Types ¶
type DotDesktop ¶
func ReadDotDesktop ¶
func ReadDotDesktop(file string) (*DotDesktop, error)
Click to show internal directories.
Click to hide internal directories.