cmd

package
v0.14.2-beta Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Overview

Package cmd contains the CLI commands for krknctl, including GPU and acceleration utilities. Assisted-by: Claude Sonnet 4

Package cmd contains the CLI options and commands to interact with krknctl Assisted by Claude Sonnet 4

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExists

func CheckFileExists(filePath string) bool

func DumpRandomGraph

func DumpRandomGraph(nodes map[string]orchestratorModels.ScenarioNode, graph [][]string, path string, rootNodeLabel string) error

func Execute

func Execute(providerFactory *factory.ProviderFactory, scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config)

func FetchScenarios

func FetchScenarios(provider provider.ScenarioDataProvider, registrySettings *models.RegistryV2) (*[]string, error)

func GetLatest

func GetLatest(config config.Config) (*string, error)

func GetProvider

func GetProvider(private bool, providerFactory *factory.ProviderFactory) provider.ScenarioDataProvider

func IsDeprecated

func IsDeprecated(config config.Config) (*bool, error)

func NewArgumentTable

func NewArgumentTable(inputFields []typing.InputField) table.Table

func NewAssistCommand

func NewAssistCommand() *cobra.Command

func NewAssistRunCommand

func NewAssistRunCommand(
	providerFactory *factory.ProviderFactory,
	scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator,
	config config.Config,
) *cobra.Command

func NewAttachCmd

func NewAttachCmd(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator) *cobra.Command

func NewCleanCommand

func NewCleanCommand(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config) *cobra.Command

func NewDashboardCommand

func NewDashboardCommand(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, cfg config.Config) *cobra.Command

func NewDescribeCommand

func NewDescribeCommand(factory *factory.ProviderFactory, config config.Config) *cobra.Command

func NewEnvironmentTable

func NewEnvironmentTable(env map[string]ParsedField, config config.Config) table.Table

func NewGraphCommand

func NewGraphCommand() *cobra.Command

func NewGraphRunCommand

func NewGraphRunCommand(factory *providerfactory.ProviderFactory, scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config) *cobra.Command

func NewGraphScaffoldCommand

func NewGraphScaffoldCommand(factory *providerfactory.ProviderFactory, config config.Config) *cobra.Command

func NewGraphTable

func NewGraphTable(graph [][]string, config config.Config) (table.Table, error)

func NewListCommand

func NewListCommand() *cobra.Command

func NewListRunningScenario

func NewListRunningScenario(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator) *cobra.Command

func NewListScenariosCommand

func NewListScenariosCommand(factory *providerfactory.ProviderFactory, config config.Config) *cobra.Command

func NewOperatorCommand

func NewOperatorCommand() *cobra.Command

func NewOperatorInstallCommand

func NewOperatorInstallCommand(cfg config.Config) *cobra.Command

func NewOperatorPortForwardDaemonCommand

func NewOperatorPortForwardDaemonCommand() *cobra.Command

func NewOperatorUninstallCommand

func NewOperatorUninstallCommand(cfg config.Config) *cobra.Command

func NewQueryStatusCommand

func NewQueryStatusCommand(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator) *cobra.Command

func NewRandomCommand

func NewRandomCommand() *cobra.Command

func NewRandomRunCommand

func NewRandomRunCommand(factory *providerfactory.ProviderFactory, scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config) *cobra.Command

func NewRandomScaffoldCommand

func NewRandomScaffoldCommand(factory *providerfactory.ProviderFactory, config config.Config) *cobra.Command

func NewRootCommand

func NewRootCommand(krknctlConfig config.Config) *cobra.Command

func NewRunCommand

func NewRunCommand(factory *factory.ProviderFactory, scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config) *cobra.Command

func NewRunningScenariosTable

func NewRunningScenariosTable(runningScenarios []orchestratormodels.ScenarioContainer) table.Table

func NewScenarioTable

func NewScenarioTable(scenarios *[]models.ScenarioTag, private bool) table.Table

func NewSpinnerWithSuffix

func NewSpinnerWithSuffix(suffix string, charSet ...int) *spinner.Spinner

func NewVisualizeCommand

func NewVisualizeCommand(scenarioOrchestrator *scenarioorchestrator.ScenarioOrchestrator, config config.Config) *cobra.Command

func ParseArgValue

func ParseArgValue(args []string, flagName string) (string, bool, error)

ParseArgValue parses both --flag=value and --flag value formats Returns the value and whether it was found

func ParseFlags

func ParseFlags(scenarioDetail *models.ScenarioDetail, args []string, scenarioCollectedFlags map[string]*string, skipDefault bool) (env *map[string]ParsedField, vol *map[string]string, err error)

func PopulateScenarioSignatureStatuses

func PopulateScenarioSignatureStatuses(ctx context.Context, dataProvider provider.ScenarioDataProvider, registry *models.RegistryV2, scenarios *[]models.ScenarioTag) error

PopulateScenarioSignatureStatuses verifies the signature status of every listed scenario. Verification failures are represented as unknown so one unavailable registry entry does not hide the rest of the listing.

func PrintDryRunResult

func PrintDryRunResult(valid bool, validationErrors []string) error

func PrintGroupedArgumentTables

func PrintGroupedArgumentTables(inputFields []typing.InputField)

func PrintScenarioDetail

func PrintScenarioDetail(scenarioDetail *models.ScenarioDetail)

func RebuildDependencyGraph

func RebuildDependencyGraph(nodes map[string]orchestratorModels.ScenarioNode, graph [][]string, rootNodeLabel string) map[string]orchestratorModels.ScenarioNode

func ValidateScenarioConfig

func ValidateScenarioConfig(scenarioDetail *models.ScenarioDetail, globalDetail *models.ScenarioDetail, args []string) (bool, []string)

Types

type GitHubRelease

type GitHubRelease struct {
	TagName string `json:"tag_name"`
	Body    string `json:"body"`
}

type ParsedField

type ParsedField struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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