build

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCMD

func NewCMD() *cobra.Command

Types

type Option added in v0.55.0

type Option struct {
	persesCMD.Option
	opt.FileOption
	opt.DirectoryOption
	opt.OutputOption

	Mode string
	// contains filtered or unexported fields
}

func (*Option) BuildOutputFilePath added in v0.55.0

func (o *Option) BuildOutputFilePath(inputFilePath string) string

BuildOutputFilePath generates the output file path based on the input file path Example when the dac output folder is "built", and the output format is "yaml":

  • inputFilePath: "dashboards/my_dashboard.cue"
  • outputFilePath: "built/dashboards/my_dashboard_output.yaml"

/!\ Be sure to be in a DaC context so config.Global.Dac.OutputFolder is correctly set when calling this function.

func (*Option) Complete added in v0.55.0

func (o *Option) Complete(args []string) error

func (*Option) Execute added in v0.55.0

func (o *Option) Execute() error

func (*Option) SetErrWriter added in v0.55.0

func (o *Option) SetErrWriter(errWriter io.Writer)

func (*Option) SetWriter added in v0.55.0

func (o *Option) SetWriter(writer io.Writer)

func (*Option) Validate added in v0.55.0

func (o *Option) Validate() error

Jump to

Keyboard shortcuts

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