Documentation
¶
Index ¶
- type Exec
- func (ex Exec) CreateFolderIfDoesNotExist(dir string) error
- func (ex Exec) DoGit(dir string, args ...string) (string, error)
- func (ex Exec) DoGitClone(dir string, args ...string) (string, error)
- func (ex Exec) DoGitPush(dir string, args ...string) (string, error)
- func (ex Exec) OpenEditor(editor string, args ...string) error
- func (ex Exec) Run(dir string, command string, args ...string) ([]byte, error)
- func (ex Exec) RunInteractive(command string, args ...string) error
- type IExec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exec ¶
type Exec struct{}
Exec struct
func (Exec) CreateFolderIfDoesNotExist ¶
CreateFolderIfDoesNotExist checks, will check that a folder exist and create the folder if it does not exist
func (Exec) DoGitClone ¶
DoGitClone execute a `git clone <args...>`
func (Exec) OpenEditor ¶ added in v0.2.33
OpenEditor opens the editor
type IExec ¶
type IExec interface {
Run(dir string, command string, args ...string) ([]byte, error)
RunInteractive(command string, args ...string) error
DoGitClone(dir string, args ...string) (string, error)
DoGitPush(dir string, args ...string) (string, error)
DoGit(dir string, args ...string) (string, error)
CreateFolderIfDoesNotExist(dir string) error
OpenEditor(editor string, args ...string) error
}
IExec defines exec global interface, useful for testing
Click to show internal directories.
Click to hide internal directories.