shell

package
v0.0.0-...-8483bd9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2025 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Shell

type Shell struct {
	WorkingDir string
}

func NewShell

func NewShell() *Shell

func (*Shell) ChangeDirectory

func (s *Shell) ChangeDirectory(dir string) error

func (*Shell) DownloadFile

func (s *Shell) DownloadFile(remotePath, localPath string) error

func (*Shell) ExecuteCommand

func (s *Shell) ExecuteCommand(command string) (string, error)

func (*Shell) HandleCommand

func (s *Shell) HandleCommand(command string) (string, error)

func (*Shell) ListFiles

func (s *Shell) ListFiles(dir string) ([]string, error)

func (*Shell) ParseCommand

func (s *Shell) ParseCommand(command string) (string, []string)

func (*Shell) UploadFile

func (s *Shell) UploadFile(localPath, remotePath string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL