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.
Click to show internal directories.
Click to hide internal directories.