Documentation ¶
Index ¶
- func Alias(s *Session, cli []string) error
- func Chdir(s *Session, cli []string) error
- func Copy(s *Session, cli []string) error
- func Echo(s *Session, cli []string) error
- func Export(s *Session, cli []string) error
- func Mkdir(s *Session, cli []string) error
- func Move(s *Session, cli []string) error
- func Unalias(s *Session, cli []string) error
- func Wget(s *Session, cli []string) error
- func Which(s *Session, cli []string) error
- type FuncMap
- type Session
- func (s *Session) Close() error
- func (s *Session) Error() error
- func (s *Session) Exec(cmds ...string) error
- func (s *Session) Funcs(funcs FuncMap) *Session
- func (s *Session) GetEnv(key string) string
- func (s *Session) Glob(pattern string) []string
- func (s *Session) Output() ([]byte, error)
- func (s *Session) PutEnv(key string, val string)
- func (s *Session) Run() error
- func (s *Session) Script(str string) *Session
- func (s *Session) SetError(e error)
- func (s *Session) Test(str string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Session ¶
type Session struct { Env map[string]string Stdin io.Reader Stdout io.Writer Stderr io.Writer // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.