Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runner ¶
type Runner struct {
	ConfigHolder      *framework.ConfigHolder
	Output            output.Interface
	Workspace         *workspaces.Workspace
	ApplicationName   string
	EnvironmentId     resources.ID
	EnvironmentName   string
	Scope             resources.ID
	ConnectionFactory connections.Factory
}
    Runner is the runner implementation for the `rad env switch` command.
func (*Runner) Run ¶
Run updates the workspace section of the configuration with the workspace name and environment ID provided. It returns an error if the update fails.
func (*Runner) Validate ¶
Validate checks if the requested environment exists and if it is an editable workspace, then sets the environment name, scope, and environment ID for the Runner struct. If the requested environment is already set as the default environment, it logs a message. If an error occurs, it is returned.
 Click to show internal directories. 
   Click to hide internal directories.