cmd

package
v0.12.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 46 Imported by: 0

Documentation

Index

Constants

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

	TimeoutYear = int64(365) * 24 * 60 * 60 * 1000

	UriHelpText = `` /* 1417-byte string literal not displayed */

)
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 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 BlockDetails added in v0.12.0

type BlockDetails struct {
	BlockId     string              `json:"blockid"`     // Unique identifier for the block
	WorkspaceId string              `json:"workspaceid"` // ID of the workspace containing the block
	TabId       string              `json:"tabid"`       // ID of the tab containing the block
	View        string              `json:"view"`        // Canonical view type (term, web, preview, edit, sysinfo, waveai)
	Meta        waveobj.MetaMapType `json:"meta"`        // Block metadata including view type
}

BlockDetails represents the information about a block returned by the list command

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