Documentation ¶
Index ¶
- func Compress(value string) (string, error)
- func CopyFile(src, dst string) (err error)
- func CopyFileContents(src, dst string) (err error)
- func CreatePath(path string) error
- func ExecutableFolder() (string, error)
- func ExistsPath(path string) (bool, error)
- func Uncompress(value string) (string, error)
- type Action0
- type Action1
- type FakeParrot
- func (p *FakeParrot) Debug(a ...interface{})
- func (p *FakeParrot) Error(a ...interface{})
- func (p *FakeParrot) Info(a ...interface{})
- func (p *FakeParrot) Print(a ...interface{})
- func (p *FakeParrot) Println(a ...interface{})
- func (p *FakeParrot) Tablify(header []string, body [][]string)
- func (p *FakeParrot) Warn(a ...interface{})
- type Parrot
- type Parroter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyFileContents ¶
copyFileContents copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file.
func CreatePath ¶
func ExecutableFolder ¶
func ExistsPath ¶
func Uncompress ¶
Types ¶
type FakeParrot ¶
type FakeParrot struct {
// contains filtered or unexported fields
}
FakeParrot is a fake implementation of the Parrot struct for testing purposes.
func NewFakeParrot ¶
func NewFakeParrot(n string) *FakeParrot
NewFakeParrot creates a new instance of FakeParrot.
func (*FakeParrot) Debug ¶
func (p *FakeParrot) Debug(a ...interface{})
Debug prints debug messages.
func (*FakeParrot) Error ¶
func (p *FakeParrot) Error(a ...interface{})
Error prints error messages.
func (*FakeParrot) Info ¶
func (p *FakeParrot) Info(a ...interface{})
Info prints informational messages.
func (*FakeParrot) Print ¶
func (p *FakeParrot) Print(a ...interface{})
Print prints messages without formatting.
func (*FakeParrot) Println ¶
func (p *FakeParrot) Println(a ...interface{})
Println prints messages with a newline.
func (*FakeParrot) Tablify ¶
func (p *FakeParrot) Tablify(header []string, body [][]string)
Tablify simulates tabular output.
type Parrot ¶
type Parrot struct {
// contains filtered or unexported fields
}
func NewVerboseParrot ¶
Click to show internal directories.
Click to hide internal directories.