system

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDirectory

func CopyDirectory(src, dst string, ignores []string) error

func CopyFile

func CopyFile(src, dst string, ignores []string) error

func CopyPath added in v0.4.1

func CopyPath(src, dst string, ignores []string) error

CopyPath copies a file or directory from src to dst

func DiffFiles

func DiffFiles(origin, dest string, ignores []string, reverseSyncMode bool) (bool, error)

DiffFiles compares files or directories based on the sync mode. If reverseSyncMode is true, the destination is considered the source.

func GetConfigPaths added in v0.4.1

func GetConfigPaths() (string, string, error)

GetConfigPaths returns the config directory and config file path for gart

func GetDataPaths added in v0.7.0

func GetDataPaths() (string, error)

GetDataPaths returns the data directory path for gart storage

func GetEditor added in v0.5.1

func GetEditor() string

func GetHostname added in v0.4.1

func GetHostname() (string, error)

GetHostname returns the hostname of the system

func GetTimestamp added in v0.4.1

func GetTimestamp() string

GetTimestamp returns the current timestamp

func PromptForGitVersioning added in v0.4.1

func PromptForGitVersioning() (bool, error)

PromptForGitVersioning asks the user if they want to enable Git versioning

func RemoveDirectory

func RemoveDirectory(path string) error

func RemoveIgnoredFiles added in v0.5.0

func RemoveIgnoredFiles(dst string, ignores []string) error

RemoveIgnoredFiles removes files and directories that match the ignore patterns

Types

This section is empty.

Jump to

Keyboard shortcuts

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