config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectForge

func DetectForge(host string) string

DetectForge guesses the adapter from the host by checking registered forges.

Types

type Config

type Config struct {
	Forge  string
	Host   string
	Owner  string
	Repo   string
	APIURL string
	Token  string
}

Config is the fully resolved target.

func Resolve

func Resolve(opt Options) (Config, error)

Resolve merges flags, environment, and git detection.

type Options

type Options struct {
	Forge   string
	Host    string
	Repo    string
	APIURL  string
	Token   string
	NoToken bool
}

Options are the command-line values.

Jump to

Keyboard shortcuts

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