option

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Positional struct {
		Input string
	} `positional-args:"yes"`
	TypeFlag          string   `long:"type" description:"output type" default:"svg" choice:"svg" choice:"dot" choice:"png" choice:"mermaid" choice:"d2"` // nolint:staticcheck
	Filename          string   `long:"output"`
	NonVariableScalar bool     `long:"non-variable-scalar"`
	VariableScalar    bool     `long:"variable-scalar"`
	Metadata          bool     `long:"metadata"`
	ExecutionStats    bool     `long:"execution-stats"`
	ExecutionSummary  bool     `long:"execution-summary"`
	SerializeResult   bool     `long:"serialize-result"`
	HideScanTarget    bool     `long:"hide-scan-target"`
	ShowQuery         bool     `long:"show-query"`
	ShowQueryStats    bool     `long:"show-query-stats"`
	Full              bool     `long:"full" description:"full output"`
	HideMetadata      []string `long:"hide-metadata"`
}

func (*Options) ApplyFullOption added in v0.7.1

func (o *Options) ApplyFullOption()

func (*Options) BuildOptions added in v0.9.0

func (o *Options) BuildOptions() visualize.BuildOptions

BuildOptions maps CLI flags to library build settings.

func (*Options) Normalize added in v0.8.0

func (o *Options) Normalize() error

Normalize applies derived options and validates output settings for library callers.

Jump to

Keyboard shortcuts

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