mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat: add cluster context support in Compose with x-context extension
This commit is contained in:
1 parent
8ae38cfd57
commit
1525d182b5
8 files changed
+121
No files matched your search
@@ -561,6 +561,15 @@ func provisionOrConnectRemoteMachine(
|
||||
return machineClient, nil
|
||||
}
|
||||
|
||||
// SetClusterContextIfUnset sets the cluster context override only if no --context flag was used
|
||||
// and no --connect direct connection is active.
|
||||
func (cli *CLI) SetClusterContextIfUnset(name string) {
|
||||
if name == "" || cli.contextOverride != "" || cli.conn != nil {
|
||||
return
|
||||
}
|
||||
cli.contextOverride = name
|
||||
}
|
||||
|
||||
// ProgressOut returns an output stream for progress writer.
|
||||
func (cli *CLI) ProgressOut() *streams.Out {
|
||||
return streams.NewOut(os.Stdout)
|
||||
|
||||
Reference in new issue
Block a user