Documentation
¶
Index ¶
- Variables
- func CleanHost(host string) string
- func CreateCmd(command string, args ...string) (cmd *exec.Cmd, err error)
- func Exec(command string, args ...string) (output string, err error)
- func ExplandHome(filePath string) string
- func IsExistsPath(p string) bool
- func MkdirP(dirPath string)
- type ProgressBar
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IsGnuTar show tar type IsGnuTar = false )
Functions ¶
func CleanHost ¶
CleanHost clean host url ftp://foo.bar.com -> foo.bar.com
Types ¶
type ProgressBar ¶ added in v0.2.4
type ProgressBar struct {
FileLength int64
Reader io.Reader
// contains filtered or unexported fields
}
func NewProgressBar ¶ added in v0.2.4
func NewProgressBar(myLogger logger.Logger, reader *os.File) ProgressBar
func (ProgressBar) Done ¶ added in v0.2.4
func (p ProgressBar) Done(url string)
Click to show internal directories.
Click to hide internal directories.