cmd

package
v0.0.0-...-0bdd51b Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagSplitVm is the command-line flag for subcommands that can use a
	// split-process Agoric VM.  The default is to use an embedded VM.
	FlagSplitVm      = "split-vm"
	EmbeddedVmEnvVar = "AGD_EMBEDDED_VM"
)
View Source
const (
	// FlagExportDir is the command-line flag for the "export" command specifying
	// where the output of the export should be placed. It contains both the
	// items names below: the genesis file, and a directory containing the
	// exported swing-store artifacts
	FlagExportDir = "export-dir"
	// ExportedGenesisFileName is the file name used to save the genesis in the export-dir
	ExportedGenesisFileName = "genesis.json"
	// ExportedSwingStoreDirectoryName is the directory name used to save the swing-store
	// export (artifacts only) in the export-dir
	ExportedSwingStoreDirectoryName = "swing-store"
)

Variables

View Source
var AppName = "agd"

Functions

func NewRootCmd

func NewRootCmd(sender vm.Sender) (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

Types

type CustomAppConfig

type CustomAppConfig struct {
	serverconfig.Config `mapstructure:",squash"`
	// Swingset must be named as expected by swingset.DefaultConfigTemplate
	// and must use a mapstructure key matching swingset.ConfigPrefix.
	Swingset swingset.SwingsetConfig `mapstructure:"swingset"`
	Rosetta  rosetta.Config          `mapstructure:"rosetta"`
}

CustomAppConfig extends the base config struct.

Jump to

Keyboard shortcuts

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