commands

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 43 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(args []string) error

func AuthConfirm

func AuthConfirm(args []string, dbPath string) error

AuthConfirm confirms a user's email in the database

func AuthList

func AuthList(args []string, dbPath string) error

AuthList lists all users in the database

func AuthManage

func AuthManage(args []string) error

AuthManage handles auth management subcommands (confirm, list, etc.)

func Authz

func Authz(args []string) error

Authz generates the authorization system (role column + queries).

func Component

func Component(args []string) error

Component handles the `lvt component` command group.

func ComponentEject

func ComponentEject(args []string) error

ComponentEject handles the `lvt component eject` command.

func ComponentEjectTemplate

func ComponentEjectTemplate(args []string) error

ComponentEjectTemplate handles the `lvt component eject-template` command.

func ComponentList

func ComponentList(args []string) error

ComponentList lists available components from the library.

func Console

func Console(args []string) error

Console opens an interactive database shell for the current app.

func Env

func Env(args []string) error

Env handles environment variable management commands

func EnvGenerate

func EnvGenerate(args []string) error

EnvGenerate generates a .env.example file based on the app structure

func EnvList

func EnvList(args []string) error

EnvList lists all environment variables from .env file

func EnvSet

func EnvSet(args []string) error

EnvSet sets an environment variable in the .env file

func EnvUnset

func EnvUnset(args []string) error

EnvUnset removes an environment variable from the .env file

func EnvValidate

func EnvValidate(args []string) error

EnvValidate validates that all required environment variables are set

func Gen

func Gen(args []string) error

func GenAPI

func GenAPI(args []string) error

GenAPI generates a JSON API handler for a resource.

func GenJob

func GenJob(args []string) error

GenJob scaffolds a new background job handler.

func GenQueue

func GenQueue(args []string) error

GenQueue sets up background job infrastructure using River.

func GenResource

func GenResource(args []string) error

func GenSchema

func GenSchema(args []string) error

func GenStack

func GenStack(args []string) error

func GenTask

func GenTask(args []string) error

GenTask scaffolds a new scheduled task.

func GenView

func GenView(args []string) error

func InstallAgent

func InstallAgent(args []string) error

InstallAgent installs an AI agent into the current project

func Kits

func Kits(args []string) error

func Migration

func Migration(args []string) error

func New

func New(args []string) error

func NewComponent

func NewComponent(args []string) error

NewComponent handles the `lvt new component` command.

func Parse

func Parse(args []string) error

Parse validates a template file and shows detailed information

func Resource

func Resource(args []string) error

func Seed

func Seed(args []string) error

func Serve

func Serve(args []string) error

func ShowHelpIfRequested

func ShowHelpIfRequested(args []string, helpFunc func()) bool

ShowHelpIfRequested checks if args contain --help or -h flags. If found, it calls the provided help function and returns true. Callers should return early when this returns true.

func Stack

func Stack(args []string) error

func StackInfo

func StackInfo(args []string) error

func StackValidate

func StackValidate(args []string) error

func Styles

func Styles(args []string) error

Styles handles the "lvt styles" command and subcommands.

func ValidatePositionalArg

func ValidatePositionalArg(arg, argName string) error

ValidatePositionalArg ensures a positional argument doesn't look like a flag. Returns an error if the argument starts with "-" (likely a typo or unknown flag).

Types

type AgentConfig

type AgentConfig struct {
	Name        string
	TargetDir   string
	ResourceFS  embed.FS
	ResourceDir string
	Description string
	NextSteps   []string
}

AgentConfig holds configuration for different agent types

type AuthFlags

type AuthFlags struct {
	NoPassword      bool
	NoMagicLink     bool
	NoEmailConfirm  bool
	NoPasswordReset bool
	NoSessionsUI    bool
	NoCSRF          bool
}

Jump to

Keyboard shortcuts

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