cexec

package
v0.0.0-...-a497f71 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(cmd string, exe Executor) error

Types

type BashExecutor

type BashExecutor struct {
	// contains filtered or unexported fields
}

func (*BashExecutor) Create

func (b *BashExecutor) Create(content string) error

func (*BashExecutor) Edit

func (b *BashExecutor) Edit() error

func (*BashExecutor) Execute

func (b *BashExecutor) Execute() error

type CmdExecutor

type CmdExecutor struct {
	// contains filtered or unexported fields
}

func (*CmdExecutor) Create

func (c *CmdExecutor) Create(content string) error

func (*CmdExecutor) Edit

func (c *CmdExecutor) Edit() error

func (*CmdExecutor) Execute

func (c *CmdExecutor) Execute() error

type Executor

type Executor interface {
	Create(content string) error
	Execute() error
	Edit() error
}

func ChooseExecutor

func ChooseExecutor() Executor

type PwshExecutor

type PwshExecutor struct {
	// contains filtered or unexported fields
}

func (*PwshExecutor) Create

func (p *PwshExecutor) Create(content string) error

func (*PwshExecutor) Edit

func (p *PwshExecutor) Edit() error

func (*PwshExecutor) Execute

func (p *PwshExecutor) Execute() error

Jump to

Keyboard shortcuts

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