system

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 9 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) (bool, error)

DiffFiles compares files or directories at origin and dest paths. It returns true if changes were made, and false otherwise.

func GetConfigPaths added in v0.4.1

func GetConfigPaths() (string, string, error)

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