commands

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package commands contains common commands that can be injected into each domain's CLI application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Commands

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

Commands provides a set of common commands that can be integrated into Domain-specific CLIs.

func NewCommands

func NewCommands(lggr logger.Logger) *Commands

NewCommands creates a new instance of Commands.

func (Commands) NewEnvCmds

func (c Commands) NewEnvCmds(
	domain cldf_domain.Domain,
) *cobra.Command

NewEnvCmds creates a new set of commands for managing environment.

func (Commands) NewStateCmds

func (c Commands) NewStateCmds(dom domain.Domain, config StateConfig) *cobra.Command

NewStateCmds creates a new set of commands for state environment.

type StateConfig

type StateConfig struct {
	ViewState cldf.ViewStateV2
}

Jump to

Keyboard shortcuts

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