commands

package
v0.1.1-experimental.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoClientCtx indicates that the client context was not found.
	ErrNoClientCtx = errors.New("client context not found")
	// ErrNoHomeDir indicates that the home directory was not found.
	ErrNoHomeDir = errors.New("home directory not found")
)

Functions

func DefaultRootCommandSetup

func DefaultRootCommandSetup[T servertypes.Application](
	rootCmd *cobra.Command,
	mm *module.Manager,
	newApp servertypes.AppCreator[T],
	postSetupFn PostSetupFn[T],
)

DefaultRootCommandSetup sets up the default commands for the root command.

Types

type PostSetupFn

type PostSetupFn[T servertypes.Application] func(
	app T, svrCtx *server.Context, clientCtx client.Context,
	ctx context.Context, g *errgroup.Group) error

PostSetupFn is a function that is called after the application is created and the cosmos server is started.

Directories

Path Synopsis
types
Code generated by fastssz.
Code generated by fastssz.
utils
tos

Jump to

Keyboard shortcuts

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