Documentation ¶
Index ¶
- Variables
- func AppendToFile(filename, content string) error
- func CalculateHash(input string) string
- func CheckIfInitRan() error
- func EditFile(command, file string) error
- func FileContains(filename, search string) (bool, error)
- func GeneratePalrc(aliasLines string, showMessage bool) error
- func GetBindList() (string, error)
- func GetCurrentShell() string
- func GetStateFile(logger *zerolog.Logger) (*db.Storage, error)
- func ParseBool(str string) (bool, error)
- func RandStrRunes(n int) string
- func ReadableTime() string
- func RunCmd(command string, r io.Reader, w io.Writer) error
- func RunCmdInBackground(commandToRun string) int
- func UnixMilli() int64
- func UnixMilliDiff(milliseconds int64) int
- func WriteStringToFile(filePath, content string) error
- type CleanStr
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PalShellrc = "[ -f ~/.palrc ] && source ~/.palrc # added by PalApp"
)
Functions ¶
func AppendToFile ¶
func CalculateHash ¶
func CheckIfInitRan ¶
func CheckIfInitRan() error
func FileContains ¶
func GeneratePalrc ¶
func GetBindList ¶
func GetCurrentShell ¶
func GetCurrentShell() string
func RandStrRunes ¶
func ReadableTime ¶
func ReadableTime() string
func RunCmdInBackground ¶
func UnixMilliDiff ¶
func WriteStringToFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.