cli

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(rootCmd *cobra.Command)

func GetLogger added in v0.7.0

func GetLogger(params *Params, dir string) *log.Logger

GetLogger returns a file logger, according to params.

func HandleProfMem added in v0.7.0

func HandleProfMem(logger *log.Logger, p *Params)

func RootCmd

func RootCmd(fn RootFn) *cobra.Command

func StartCpuProfile added in v0.7.0

func StartCpuProfile(logger *log.Logger, p *Params) func()

func StartCpuProfileSrv added in v0.7.0

func StartCpuProfileSrv(ctx context.Context, logger *log.Logger, p *Params)

Types

type Params

type Params struct {
	// LogLevel is the log level of this instance (for debugging).
	LogLevel am.LogLevel
	// Id is the ID of this asyncmachine (for debugging).
	Id              string
	Version         bool
	ListenAddr      string
	DebugAddr       string
	RaceDetector    bool
	ImportData      string
	EnableMouse     bool
	CleanOnConnect  bool
	SelectConnected bool
	ProfMem         bool
	ProfCpu         bool
	ProfSrv         string
	MaxMemMb        int
	LogOpsTtl       time.Duration
	Reader          bool
	FwdData         []string

	StartupMachine string
	StartupView    string
	StartupTx      int
	StartupGroup   string

	ViewNarrow bool
	ViewRain   bool

	FilterGroup    bool
	FilterLogLevel am.LogLevel

	OutputDir      string
	OutputDiagrams int
	UiDiagrams     bool
	OutputClients  bool
	Timelines      int
	Rain           bool
	TailMode       bool
	OutputTx       bool
	MachUrl        string
}

func ParseParams

func ParseParams(cmd *cobra.Command, args []string) Params

type RootFn

type RootFn func(cmd *cobra.Command, args []string, params Params)

Jump to

Keyboard shortcuts

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