cmd

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxFileSize    = 10 * 1024 * 1024 // 10MB
	WaveFileScheme = "wavefile"
	WaveFilePrefix = "wavefile://"

	DefaultFileTimeout = 5000
)
View Source
const DefaultVarFileName = "var"

Variables

View Source
var CssColorNames = map[string]bool{}/* 140 elements not displayed */
View Source
var RpcClient *wshutil.WshRpc
View Source
var RpcContext wshrpc.RpcContext
View Source
var UsingTermWshMode bool
View Source
var WrappedStderr io.Writer = &WrappedWriter{dest: os.Stderr}
View Source
var WrappedStdin io.Reader = os.Stdin
View Source
var WrappedStdout io.Writer = &WrappedWriter{dest: os.Stdout}
View Source
var WshBinDir = ".waveterm/bin"
View Source
var WshExitCode int

Functions

func Execute

func Execute()

Execute executes the root command.

func MakeRemoteUnixListener added in v0.9.0

func MakeRemoteUnixListener() (net.Listener, error)

func OutputHelpMessage added in v0.10.0

func OutputHelpMessage(cmd *cobra.Command)

func WriteStderr

func WriteStderr(fmtStr string, args ...interface{})

func WriteStdout

func WriteStdout(fmtStr string, args ...interface{})

Types

type RunEFnType added in v0.9.3

type RunEFnType = func(*cobra.Command, []string) error

type WrappedWriter added in v0.10.0

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

func (*WrappedWriter) Write added in v0.10.0

func (w *WrappedWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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