config

package
v0.1.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: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "git-remote-gitopia"

	// git config section and option keys used by the Gitopia CLI / tooling.
	GitopiaConfigSection             = "gitopia"
	GitopiaConfigChainIdOption       = "chainId"
	GitopiaConfigGRPCHostOption      = "grpcHost"
	GitopiaConfigTmAddrOption        = "tmAddr"
	GitopiaConfigGitServerHostOption = "gitServerHost"
	GitopiaConfigKeyOption           = "key"
	GitopiaConfigBackendOption       = "backend"
	GitopiaConfigGasPricesOption     = "gasPrices"
	GitopiaConfigFeeGranterOption    = "feeGranter"
	GitopiaConfigDenomOption         = "denom"
)

Default configuration keys and values.

Variables

View Source
var (
	ChainId        = "gitopia"
	GitServerHost  = "https://server.gitopia.com"
	GasPrices      = "0.001ulore"
	FeeGranterAddr = "gitopia13ashgc6j5xle4m47kqyn5psavq0u3klmscfxql"
	Denom          = "ulore"
)

Mutable values that may be overridden at runtime by LoadGitConfig.

Functions

func GitConfigGet

func GitConfigGet(key string) (string, error)

GitConfigGet reads a value from global git config: `git config --get gitopia.<key>`.

func LoadGitConfig

func LoadGitConfig() error

LoadGitConfig populates the package variables from the user's git config if they exist.

Types

This section is empty.

Jump to

Keyboard shortcuts

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