cmd

package
v0.0.0-...-730a8a9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Unlicense Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TerminalWSClient *websocket.Conn
	TerminalWsServer = "terminal-ws"
)

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type MessageData

type MessageData struct {
	MessageType int `json:"-"`
	Op          Op
	Data        string
	Rows        int
	Cols        int
}

type Op

type Op string
const (
	Ping      = "ping\r"
	Stdin  Op = "stdin"
	Stdout Op = "stdout"
	Close  Op = "close"
)

Jump to

Keyboard shortcuts

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