app

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package app provides CLI wiring and process setup for gormdb2struct.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string) error

Run executes the gormdb2struct CLI against the provided process arguments.

Types

type CLIConfig

type CLIConfig struct {
	Logging    LoggingConfig `embed:""`
	ConfigPath string        `arg:"" optional:"" name:"config" help:"Path to the TOML configuration file." type:"path"`
}

CLIConfig defines the top-level command-line contract.

type GenerateConfigSampleCmd

type GenerateConfigSampleCmd struct {
	Out string `name:"out" short:"o" default:"gormdb2struct-sample.toml" help:"Path to write the sample TOML config." type:"path"`
}

GenerateConfigSampleCmd writes a starter TOML configuration file.

type LoggingConfig

type LoggingConfig struct {
	Level string `name:"logging.level" enum:"debug,info,warn,error" default:"info" help:"Log level." group:"logging"`
}

LoggingConfig defines CLI-controlled logging options.

Directories

Path Synopsis
Package consts stores application-level build and naming constants.
Package consts stores application-level build and naming constants.

Jump to

Keyboard shortcuts

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