commands

package
v0.0.0-...-4c53631 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncCommandsStruct

type AsyncCommandsStruct struct {
	Commands []*CommandStruct
}

type CommandStruct

type CommandStruct struct {
	Command string
	Async   bool
	DefaultCommandStruct
	// contains filtered or unexported fields
}

func GetAttributesStruct

func GetAttributesStruct() *CommandStruct

type Commander

type Commander struct {
	AsyncCommands *AsyncCommandsStruct
	Output        *responser.ResponseStruct
	Channel       chan bool
}

func (*Commander) CreateAsyncGroup

func (t *Commander) CreateAsyncGroup()

func (*Commander) RunAsyncCommands

func (t *Commander) RunAsyncCommands() bool

func (*Commander) Runner

func (t *Commander) Runner(command *CommandStruct, asyncGroup bool)

type DefaultCommandStruct

type DefaultCommandStruct struct {
	Uid   uint64
	Gid   uint64
	Shell string
	Try   int
	Cd    string
}

Jump to

Keyboard shortcuts

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