env

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteEnvVar

func DeleteEnvVar(ctx context.Context, client *vers.Client, key string) error

DeleteEnvVar deletes an environment variable by key

func ListEnvVars

func ListEnvVars(ctx context.Context, client *vers.Client) (map[string]string, error)

ListEnvVars retrieves all environment variables for the current user

func ReplaceAllEnvVars

func ReplaceAllEnvVars(ctx context.Context, client *vers.Client, vars map[string]string) error

ReplaceAllEnvVars replaces all environment variables with the provided set

func SetEnvVar

func SetEnvVar(ctx context.Context, client *vers.Client, key, value string) error

SetEnvVar sets a single environment variable

Types

type EnvVarsResponse

type EnvVarsResponse struct {
	Vars map[string]string `json:"vars"`
}

EnvVarsResponse matches the API response structure

type SetEnvVarsRequest

type SetEnvVarsRequest struct {
	Vars    map[string]string `json:"vars"`
	Replace bool              `json:"replace"`
}

SetEnvVarsRequest matches the API request structure

Jump to

Keyboard shortcuts

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