Documentation ¶
Index ¶
- Constants
- func Copy(src, dist string) error
- func CopyDirectory(srcDir, dist string) error
- func CopyFile(src, dist string) error
- func CopySymLink(src, dist string) error
- func CreateFile(filename string) error
- func CreateIfNotExists(dir string, perm os.FileMode) error
- func Exists(filePath string) bool
- func GitClone(gitRepoPath string, dir string) error
- func GitCommitAndPush(dir string) error
- func GitPull(dir string) error
- func IsDir(path string) bool
- func IsFile(path string) bool
- func MakeDirWithFilePath(path string) error
- func Move(src, dist string) error
- func RealPath(path string) (string, error)
- func RemoveFiles(path string) error
- func RunCommandInShell(command string)
- func RunCommandInShellGetOutput(command string) (string, error)
- func WriteFile(dir string, content []byte) error
Constants ¶
View Source
const ( EnableLogEnvName = "confSyncer" EnableLogEnvValue = "enableLog" )
Variables ¶
This section is empty.
Functions ¶
func CopyDirectory ¶
CopyDirectory can copy directory to dist path
func CreateIfNotExists ¶
CreateIfNotExists create dir if folder is exists
func GitCommitAndPush ¶
func MakeDirWithFilePath ¶
func RunCommandInShell ¶
func RunCommandInShell(command string)
RunCommandInShell call bash shell && return stdout and stderr
func RunCommandInShellGetOutput ¶
RunCommandInShellGetOutput return output in once time
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.