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 ¶
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.
Click to show internal directories.
Click to hide internal directories.