Documentation
¶
Index ¶
Constants ¶
View Source
const ( MountConsistencyConsistent = "consistent" MountConsistencyCached = "cached" MountConsistencyDelegated = "delegated" UpdateRemoteUserUIDOn = "on" UpdateRemoteUserUIDOff = "off" )
Variables ¶
This section is empty.
Functions ¶
func NewUpCmd ¶
func NewUpCmd(f *flags.GlobalFlags) *cobra.Command
NewUpCmd creates a new up command.
func RunFromOptions ¶
RunFromOptions runs the up logic without cobra. Callers own ctx cancellation; WithSignals is intentionally skipped.
Types ¶
type Options ¶
type Options struct {
Source string // git URL, local path, image, or workspace name
Name string // explicit workspace ID override
Provider string // provider name override
IDE string // ide name; "none" to skip launching
DevcontainerPath string // path to devcontainer.json, relative to project
}
Options is the structured input form of the up command.
type UpCmd ¶
type UpCmd struct {
provider2.CLIOptions
*flags.GlobalFlags
Machine string
ProviderOptions []string
ConfigureSSH bool
GPGAgentForwarding bool
SSHTunnelMode bool
IDELaunch opener.IDELaunchMode
Reconfigure bool
SSHConfigPath string
SecretsFile string
FeatureSecretsFile string
WorkspaceFolder string
DotfilesSource string
DotfilesScript string
DotfilesTargetPath string
DotfilesScriptEnv []string // Key=Value to pass to install script
DotfilesScriptEnvFile []string // Paths to files containing Key=Value pairs to pass to install script
// Out receives result/error JSON envelopes; nil falls back to os.Stdout.
Out io.Writer
// contains filtered or unexported fields
}
UpCmd holds the up cmd flags.
Click to show internal directories.
Click to hide internal directories.