app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Info         VersionInfo
	GitHubClient *gh.Client
}

App is the composition root for the gh-secrets-sync CLI. It holds all top-level dependencies and exposes a single Run entry-point.

func New

func New(opts ...Option) (*App, error)

New constructs an App with the provided options

func (*App) Run

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

Run builds the root command and executes it with the provided arguments.

type Option

type Option func(*App)

Option is a functional option for configuring an App.

func WithVersionInfo

func WithVersionInfo(info VersionInfo) Option

WithVersionInfo sets the build-time version metadata.

type VersionInfo

type VersionInfo struct {
	Version   string
	Commit    string
	BuildDate string
}

VersionInfo holds build-time metadata for the application.

func (VersionInfo) String

func (v VersionInfo) String() string

String returns a formatted version string suitable for CLI output.

Jump to

Keyboard shortcuts

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