Versions in this module Expand all Collapse all v0 v0.2.0 Feb 10, 2026 v0.1.0 Feb 9, 2026 Changes in this version + type Command struct + func NewCommand(sett settings.Settings, program string, args ...string) *Command + func (c *Command) Cmd(_ context.Context) + func (c *Command) CombinedOutput(ctx context.Context) ([]byte, error) + func (c *Command) OnCommandStart(fn func()) + func (c *Command) Output(ctx context.Context) ([]byte, []byte, error) + func (c *Command) Run(ctx context.Context) error + func (c *Command) StderrBytes() []byte + func (c *Command) StdoutBytes() []byte + func (c *Command) Sudo(_ context.Context) + func (c *Command) WithEnv(env map[string]string) + func (c *Command) WithSSHArgs(_ ...string) + func (c *Command) WithStderrHandler(h func(line string)) + func (c *Command) WithStdoutHandler(h func(line string)) + func (c *Command) WithTimeout(t time.Duration) + type File struct + func NewFile() *File + func (File) Download(_ context.Context, srcPath, dstPath string) error + func (File) DownloadBytes(_ context.Context, srcPath string) ([]byte, error) + func (File) Upload(_ context.Context, srcPath, dstPath string) error + func (File) UploadBytes(_ context.Context, data []byte, dstPath string) error + type NodeInterface struct + func NewDefaultNodeInterface() *NodeInterface + func NewNodeInterface(sett settings.Settings) *NodeInterface + func (n *NodeInterface) Command(name string, args ...string) connection.Command + func (n *NodeInterface) File() connection.File + func (n *NodeInterface) UploadScript(scriptPath string, args ...string) connection.Script + type Script struct + func NewScript(sett settings.Settings, path string, args ...string) *Script + func (s *Script) Execute(ctx context.Context) ([]byte, error) + func (s *Script) ExecuteBundle(ctx context.Context, parentDir, bundleDir string) ([]byte, error) + func (s *Script) Sudo() + func (s *Script) WithBundlerOpts(opts ...connection.BundlerOption) + func (s *Script) WithCleanupAfterExec(doCleanup bool) + func (s *Script) WithEnvs(envs map[string]string) + func (s *Script) WithExecuteUploadDir(string) + func (s *Script) WithNoLogStepOutOnError(bool) + func (s *Script) WithStdoutHandler(handler func(string)) + func (s *Script) WithTimeout(timeout time.Duration)