Documentation ¶
Index ¶
- func AddToArchive(filePath string, archiveName string, removeFiles bool) error
- func AddToArchiveGzipped(filePath string, archiveName string, removeFiles bool) (string, error)
- func DestroyFileInArchive(filePath string, archivePath string) error
- func FileExists(filePath string) bool
- func GzipFileOrDir(filePath string, removeFiles bool) (string, error)
- func IsFile(filePath string) bool
- func ListArchive(archiveName string) (string, error)
- func ListArchiveTopLevel(archiveName string) (string, error)
- func ParseOptions()
- func PrintHelp()
- func PrintVersion()
- func Unarchive(filePath string, archiveName string, removeFiles bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToArchive ¶
AddToArchive adds the given file into the given archive
func AddToArchiveGzipped ¶
AddToArchiveGzipped adds the gzipped version of the given file into the given archive
func DestroyFileInArchive ¶
DestroyFileInArchive removes the given file from the given archive contents
func FileExists ¶
FileExists returns whether given file exists
func GzipFileOrDir ¶
GzipFileOrDir gzips the given file or directory and returns the gzipped name
func ListArchive ¶
ListArchive returns a new line separated string of all archive contents recursively.
func ListArchiveTopLevel ¶
ListArchiveTopLevel returns a new line separated string of archive contents without a parent directory.
func ParseOptions ¶
func ParseOptions()
ParseOptions parses the flags passed and executes the appropriate options.
func PrintHelp ¶ added in v0.0.5
func PrintHelp()
PrintHelp prints a help text summarising the functions of flags
func PrintVersion ¶ added in v0.0.5
func PrintVersion()
PrintVersion prints the version of archive and a small usage text
Types ¶
This section is empty.