Documentation ¶
Index ¶
- Variables
- func AbsolutePath(path string) string
- func CleanHost(host string) string
- func Exec(command string, args ...string) (output string, err error)
- func ExecWithStdio(command string, stdout bool, args ...string) (output string, err error)
- func ExplandHome(filePath string) string
- func FormatEndpoint(endpoint string) string
- func IsExistsPath(p string) bool
- func MkdirP(dirPath string) error
- 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
func ExecWithStdio ¶
ExecWithStdio cli commands with stdio
func FormatEndpoint ¶
FormatEndpoint to add `https://` prefix if not present
Types ¶
type ProgressBar ¶
type ProgressBar struct { FileLength int64 Reader io.Reader // contains filtered or unexported fields }
func NewProgressBar ¶
func NewProgressBar(myLogger logger.Logger, reader *os.File) ProgressBar
func (ProgressBar) Done ¶
func (p ProgressBar) Done(url string)
Click to show internal directories.
Click to hide internal directories.