command

package
v0.0.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package command holds the hex CLI's own cobra command tree — built the same way `hex init` wires one for a scaffolded app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(app *hex.App) int

Execute builds the command tree wired to app and runs it, returning the process exit code. main is just os.Exit(command.Execute(kernel)).

func Root

func Root(app *hex.App) *cobra.Command

Root builds the top-level cobra command wired to app. hex make command inserts subcommand registrations above the `// hex:commands` marker below. Do not remove the marker.

Types

This section is empty.

Directories

Path Synopsis
Package genman implements the hidden `hex gen-man` command.
Package genman implements the hidden `hex gen-man` command.
Package init implements `hex init`.
Package init implements `hex init`.
Package make holds the `hex make` command group — one subpackage per generator (provider, domain, migration, adapter, controller, command).
Package make holds the `hex make` command group — one subpackage per generator (provider, domain, migration, adapter, controller, command).
adapter
Package adapter implements `hex make adapter`.
Package adapter implements `hex make adapter`.
command
Package command implements `hex make command`.
Package command implements `hex make command`.
controller
Package controller implements `hex make controller`.
Package controller implements `hex make controller`.
domain
Package domain implements `hex make domain`.
Package domain implements `hex make domain`.
migration
Package migration implements `hex make migration`.
Package migration implements `hex make migration`.
provider
Package provider implements `hex make provider`.
Package provider implements `hex make provider`.
Package publish implements `hex publish`.
Package publish implements `hex publish`.

Jump to

Keyboard shortcuts

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