Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ScriptSHAs = []string{
"020657425d0ba9f42fd3536d88fb3e80e85eaeae2daa1f7005b0b48dc270a084",
"3ec9e59a260a2befeb83a94952337dddcac1fb4f7dcc1200a2964bfb336f26c3",
"5ba24eaadfe620ad7c78a5c1f860d9845bc20077a3f9c766936485d912b75b60",
"60c8e1787b16b6bd02c0cf6562671b0f60fb8d867b6d5140afd96bd2521e2f68",
"6e1e6a687dc1f43c8187fb6c11b2a3ad1b1cfc93cda0b5ef307710dcfafa0dd4",
"7a2b479e582d39826ef3e47d9930c7e8ff21275fba53efdc8204fe160742b56c",
"04f065a430d1d99bc99f19e82a6465ab6823467d9c6b5ec3f751befa7a3b30a8",
"57697ee9f19658d1872fc5877e2a38ba132a2df85e4416802a4c33968e00c716",
"75abcf121df40b25cd0c7bab908c43dbf536bc6f4552a2f6e825ac90c8fff994",
"7c64aa474afa3202305953e9b2ac96852f4bf65ddb417dee2cfa20ad58986834",
"b42be79b29ac118ba05b8f5b6bd46faa2232db945453b1b10afc1a6e031ca068",
"c419082d4cf1e2e9ac33382089c64b532c88d2399bae8b07c414b1d205bea74e",
"d575eda7d5d988f6f3c233ceaa42fae61f819d863145aec7a58f4f1519db31ad",
"ec14f88a38560d4524a8679f36fdfb2fb46ccd13bc399c3cddf3ca9f441952ec",
}
ScriptSHAs contains the default known valid SHA256 sums for bin/activate-hermit and bin/hermit.
Functions ¶
func Main ¶
func Main(config Config)
Main runs the Hermit command-line application with the given config.
func UserConfigResolver ¶ added in v0.2.18
func UserConfigResolver(userConfig UserConfig) kong.Resolver
UserConfigResolver is a Kong configuration resolver for the Hermit user configuration file.
Types ¶
type Config ¶
type Config struct { Version string LogLevel ui.Level BaseDistURL string // SHA256 checksums for all known versions of per-environment scripts. // If empty shell.ScriptSHAs will be used. SHA256Sums []string HTTP func(HTTPTransportConfig) *http.Client State state.Config KongOptions []kong.Option KongPlugins kong.Plugins // True if we're running in CI. CI bool }
Config for the main Hermit application.
type GlobalState ¶ added in v0.2.2
type GlobalState struct {
Env envars.Envars `help:"Extra environment variables to apply to environments."`
}
GlobalState configurable by user to be passed through to Hermit.
type HTTPTransportConfig ¶
type HTTPTransportConfig struct { ResponseHeaderTimeout time.Duration DialTimeout time.Duration KeepAlive time.Duration }
HTTPTransportConfig defines the configuration for HTTP transports used by Hermit.
type UserConfig ¶ added in v0.2.18
type UserConfig struct { Prompt string `` /* 154-byte string literal not displayed */ ShortPrompt bool `hcl:"short-prompt,optional" help:"If true use a short prompt when an environment is activated."` NoGit bool `hcl:"no-git,optional" help:"If true Hermit will never add/remove files from Git automatically."` }
UserConfig is stored in ~/.hermit.hcl
func LoadUserConfig ¶ added in v0.2.18
func LoadUserConfig() (UserConfig, error)
LoadUserConfig from disk.
Source Files ¶
- activate_cmd.go
- auto_version_cmd.go
- clean_cmd.go
- commands.go
- deactivate_cmd.go
- dump_db_cmd.go
- dump_user_config_schema_cmd.go
- env_cmd.go
- exec_cmd.go
- gc_cmd.go
- info_cmd.go
- init_cmd.go
- install_cmd.go
- list_cmd.go
- main.go
- manifest_cmd.go
- manifest_create_cmd.go
- noop_cmd.go
- search_cmd.go
- shell_hooks_cmd.go
- status_cmd.go
- sync_cmd.go
- test_cmd.go
- uninstall_cmd.go
- upgrade_cmd.go
- user_config.go
- validate_env_cmd.go
- validate_source_cmd.go
- version_cmd.go
Click to show internal directories.
Click to hide internal directories.