preview

package
v0.60.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand(factory framework.Factory) (*cobra.Command, framework.Runner)

NewCommand creates an instance of the command and runner for the `rad app graph --preview` command.

Types

type Runner

type Runner struct {
	ConfigHolder            *framework.ConfigHolder
	Output                  output.Interface
	Workspace               *workspaces.Workspace
	RadiusCoreClientFactory *corerpv20250801.ClientFactory
	Bicep                   bicep.Interface

	ApplicationName string
	Format          string
	IncludeIcons    bool

	// BicepFilePath is the optional path to the application's app.bicep.
	// When set, the command runs in enriched deployed-graph mode: the CLI
	// compiles the template, extracts its dependsOn edges, and attaches
	// them to GetGraphRequest.DependsOnEdges so the server can merge them
	// into the deployed graph.
	BicepFilePath string
}

Runner is the runner implementation for the preview `rad app graph` command.

func NewRunner

func NewRunner(factory framework.Factory) *Runner

NewRunner creates a new instance of the preview graph runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Run runs the preview `rad app graph` command.

func (*Runner) Validate

func (r *Runner) Validate(cmd *cobra.Command, args []string) error

Validate runs validation for the preview graph command.

Jump to

Keyboard shortcuts

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