hex

command
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: 6 Imported by: 0

Documentation

Overview

Command hex is the scaffolding CLI for hex applications. It is itself a hex app: it boots through hex.New(), registers its own providers in app/boot.go, and builds its cobra tree in app/command/root.go — the same shape `hex init` scaffolds for any consumer app.

Usage:

hex init [name]              # scaffold a new project
hex make provider <name>     # generate a service provider
hex make domain <name>       # generate a domain package
hex make migration <name>    # generate up/down migration files

Run without arguments to see the full command list.

Directories

Path Synopsis
app
Package app wires the hex CLI's own service providers into the hex kernel.
Package app wires the hex CLI's own service providers into the hex kernel.
build
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.
command
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.
command/genman
Package genman implements the hidden `hex gen-man` command.
Package genman implements the hidden `hex gen-man` command.
command/init
Package init implements `hex init`.
Package init implements `hex init`.
command/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).
command/make/adapter
Package adapter implements `hex make adapter`.
Package adapter implements `hex make adapter`.
command/make/command
Package command implements `hex make command`.
Package command implements `hex make command`.
command/make/controller
Package controller implements `hex make controller`.
Package controller implements `hex make controller`.
command/make/domain
Package domain implements `hex make domain`.
Package domain implements `hex make domain`.
command/make/migration
Package migration implements `hex make migration`.
Package migration implements `hex make migration`.
command/make/provider
Package provider implements `hex make provider`.
Package provider implements `hex make provider`.
command/publish
Package publish implements `hex publish`.
Package publish implements `hex publish`.
provider
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.
domain
generator
Package generator is the Generator domain: it describes hex's own make generators as data (Blueprint) and records what applying one does (Action).
Package generator is the Generator domain: it describes hex's own make generators as data (Blueprint) and records what applying one does (Action).
infrastructure
embedfs
Package embedfs is the built-in adapter for domain/generator: it serves Blueprint definitions and template bytes from the CLI's own compiled-in templates/mantemplates directories.
Package embedfs is the built-in adapter for domain/generator: it serves Blueprint definitions and template bytes from the CLI's own compiled-in templates/mantemplates directories.

Jump to

Keyboard shortcuts

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