config

package
v1.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package config stores all devenv configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(_ context.Context, c *Config) error

SaveConfig saves a provided config to disk

Types

type Config

type Config struct {
	// CurrentContext is the current devenv in use.
	CurrentContext string `yaml:"currentContext"`
}

func LoadConfig

func LoadConfig(ctx context.Context) (*Config, error)

LoadConfig reads the config from disk

func (*Config) ParseContext

func (c *Config) ParseContext() (runtime, name string)

ParseContext returns the runtime and name of the current context

Jump to

Keyboard shortcuts

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