app

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package app wires the hex CLI's own service providers into the hex kernel. Providers themselves live in the app/provider subpackage; this file lists them in Boot order.

Unlike a scaffolded consumer app, the CLI has no file-based app config (it's driven entirely by cobra flags and project-root detection), so hex/config's provider is not registered here — --log-level/--env/ --verbose are handled by cli.Root itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Boot

func Boot(kernel *hex.App) error

Boot initialises logging and registers every provider with kernel. Order matters — providers are registered and booted in the order they appear here.

hex make provider inserts new provider registrations above the `// hex:providers` marker below. Do not remove the marker.

func Bootstrap

func Bootstrap(ctx context.Context, kernel *hex.App) error

Bootstrap registers providers via Boot, then runs kernel's Register/Boot lifecycle. main only has to check one error from one call.

Types

This section is empty.

Directories

Path Synopsis
Package build re-exports hex/build metadata under the hex CLI's own namespace, the same way any scaffolded hex app does.
Package build re-exports hex/build metadata under the hex CLI's own namespace, the same way any scaffolded hex app does.
Package command holds the hex CLI's own cobra command tree — built the same way `hex init` wires one for a scaffolded app.
Package command holds the hex CLI's own cobra command tree — built the same way `hex init` wires one for a scaffolded app.
genman
Package genman implements the hidden `hex gen-man` command.
Package genman implements the hidden `hex gen-man` command.
init
Package init implements `hex init`.
Package init implements `hex init`.
make
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).
make/adapter
Package adapter implements `hex make adapter`.
Package adapter implements `hex make adapter`.
make/command
Package command implements `hex make command`.
Package command implements `hex make command`.
make/controller
Package controller implements `hex make controller`.
Package controller implements `hex make controller`.
make/domain
Package domain implements `hex make domain`.
Package domain implements `hex make domain`.
make/migration
Package migration implements `hex make migration`.
Package migration implements `hex make migration`.
make/provider
Package provider implements `hex make provider`.
Package provider implements `hex make provider`.
publish
Package publish implements `hex publish`.
Package publish implements `hex publish`.
Package provider holds the hex CLI's own service providers — the same role app/provider plays in any scaffolded hex app.
Package provider holds the hex CLI's own service providers — the same role app/provider plays in any scaffolded hex app.

Jump to

Keyboard shortcuts

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