cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package cmd holds the dragonrun CLI.

dragonrun runs ONE shared dev stack -- postgres, pgbouncer, mailpit, pgweb, caddy, dnsmasq -- and hands each project a generated environment pointing at it. Applications keep running on the host under mprocs; dragonrun never supervises them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func Vars

func Vars(c *registry.Config, p registry.Project) map[string]string

Vars builds the environment a project needs to talk to the shared stack.

The split between the two database URLs is not cosmetic. DATABASE_URL goes through pgbouncer in TRANSACTION pooling mode, which is what makes hundreds of app connections cheap.

ADMIN_DATABASE_URL goes DIRECT, for session semantics rather than for DDL: a bare CREATE DATABASE does survive the pooler, but transaction pooling breaks advisory locks, LISTEN/NOTIFY, session GUCs and temp tables -- and tenant provisioning code typically takes an advisory lock to serialise migrations. Teardown is the other half: pgbouncer's own idle server connections block DROP DATABASE until they are terminated.

func Version

func Version() string

Version renders the one-line version string used by both `dragonrun version` and `dragonrun --version`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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