cmd

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 55 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DryRun bool
View Source
var NonInteractive bool

Functions

func Execute

func Execute()

Types

type DevxConfig added in v0.2.4

type DevxConfig struct {
	Name      string               `yaml:"name"`      // Project name
	Domain    string               `yaml:"domain"`    // Custom domain (BYOD)
	Tunnels   []DevxConfigTunnel   `yaml:"tunnels"`   // List of ports to expose
	Databases []DevxConfigDatabase `yaml:"databases"` // List of databases to provision
	Test      DevxConfigTest       `yaml:"test"`      // Test configuration
	Mocks     []DevxConfigMock     `yaml:"mocks"`     // List of OpenAPI mock servers to provision
}

type DevxConfigDatabase added in v0.4.1

type DevxConfigDatabase struct {
	Engine string `yaml:"engine"`
	Port   int    `yaml:"port"`
}

type DevxConfigMock added in v0.23.0

type DevxConfigMock struct {
	Name string `yaml:"name"` // Friendly name (becomes env var MOCK_<NAME>_URL)
	URL  string `yaml:"url"`  // Remote OpenAPI spec URL (must be http:// or https://)
	Port int    `yaml:"port"` // Host port (0 = auto-assign a free port)
}

DevxConfigMock defines a remote OpenAPI-backed mock server entry. TODO(future): support local file specs by detecting if URL is a file:// or relative path, then volume-mounting it into the Prism container.

type DevxConfigTest added in v0.23.0

type DevxConfigTest struct {
	UI DevxConfigTestUI `yaml:"ui"`
}

type DevxConfigTestUI added in v0.23.0

type DevxConfigTestUI struct {
	Setup   string `yaml:"setup"`   // Pre-processing steps (e.g., migrations) to run before tests
	Command string `yaml:"command"` // The actual test command to execute
}

type DevxConfigTunnel added in v0.2.4

type DevxConfigTunnel struct {
	Name      string `yaml:"name"`       // Subdomain explicitly requested
	Port      int    `yaml:"port"`       // Local port to forward traffic towards
	BasicAuth string `yaml:"basic_auth"` // basic auth literal value 'user:pass'
	Throttle  string `yaml:"throttle"`   // traffic shaping profile e.g. '3g'
}

Jump to

Keyboard shortcuts

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