func (c *EpinioClient) EnvMatching(ctx context.Context, appName, prefix string) []string {
	log := c.Log.WithName("Env")
	log.Info("start")
	defer log.Info("return")
	resp, err := c.API.EnvMatch(c.Config.Org, appName, prefix)
	if err != nil {
		return []string{}
	}
	return resp.Names
}
EnvMatching retrieves all environment variables in the cluster, for
the specified application, and the given prefix
package usercmd
import (
	"context"
	"github.com/epinio/epinio/pkg/api/core/v1/models"
)
func (c *EpinioClient) EnvList(ctx context.Context, appName string) error {
	log := c.Log.WithName("EnvList")
	log.Info("start")
	defer log.Info("return")
	c.ui.Note().
		WithStringValue("Namespace", c.Config.Org).
		WithStringValue("Application", appName).
		Msg("Show Application Environment")
	if err := c.TargetOk(); err != nil {
		return err
	}
	eVariables, err := c.API.EnvList(c.Config.Org, appName)
	if err != nil {
		return err
	}
	msg := c.ui.Success().WithTable("Variable", "Value")
	for _, ev := range eVariables.List() {
		msg = msg.WithTableRow(ev.Name, ev.Value)
	}
	msg.Msg("Ok")
	return nil
}
func (c *EpinioClient) EnvSet(ctx context.Context, appName, envName, envValue string) error {
	log := c.Log.WithName("Env")
	log.Info("start")
	defer log.Info("return")
	c.ui.Note().
		WithStringValue("Namespace", c.Config.Org).
		WithStringValue("Application", appName).
		WithStringValue("Variable", envName).
		WithStringValue("Value", envValue).
		Msg("Extend or modify application environment")
	if err := c.TargetOk(); err != nil {
		return err
	}
	request := models.EnvVariableMap{}
	request[envName] = envValue
	_, err := c.API.EnvSet(request, c.Config.Org, appName)
	if err != nil {
		return err
	}
	c.ui.Success().Msg("OK")
	return nil
}
func (c *EpinioClient) EnvShow(ctx context.Context, appName, envName string) error {
	log := c.Log.WithName("Env")
	log.Info("start")
	defer log.Info("return")
	c.ui.Note().
		WithStringValue("Namespace", c.Config.Org).
		WithStringValue("Application", appName).
		WithStringValue("Variable", envName).
		Msg("Show application environment variable")
	if err := c.TargetOk(); err != nil {
		return err
	}
	eVariable, err := c.API.EnvShow(c.Config.Org, appName, envName)
	if err != nil {
		return err
	}
	c.ui.Success().
		WithStringValue("Value", eVariable.Value).
		Msg("OK")
	return nil
}
func (c *EpinioClient) EnvUnset(ctx context.Context, appName, envName string) error {
	log := c.Log.WithName("Env")
	log.Info("start")
	defer log.Info("return")
	c.ui.Note().
		WithStringValue("Namespace", c.Config.Org).
		WithStringValue("Application", appName).
		WithStringValue("Variable", envName).
		Msg("Remove from application environment")
	if err := c.TargetOk(); err != nil {
		return err
	}
	_, err := c.API.EnvUnset(c.Config.Org, appName, envName)
	if err != nil {
		return err
	}
	c.ui.Success().Msg("OK")
	return nil
}