feat: implement 'caddy deploy' command to deploy global service using caddy:latest image

This commit is contained in:
Pavel Sviderski
2025-02-15 10:51:02 +10:00
parent 98db5ed440
commit 625a8baed3
6 changed files with 115 additions and 19 deletions
+7
View File
@@ -4,7 +4,9 @@ import (
"context"
"errors"
"fmt"
"github.com/docker/cli/cli/streams"
"net/netip"
"os"
"uncloud/internal/cli/client"
"uncloud/internal/cli/client/connector"
"uncloud/internal/cli/config"
@@ -328,3 +330,8 @@ func (cli *CLI) promptResetMachine() error {
// TODO: implement resetting the remote machine.
return fmt.Errorf("resetting the remote machine is not implemented yet")
}
// ProgressOut returns an output stream for progress writer.
func (cli *CLI) ProgressOut() *streams.Out {
return streams.NewOut(os.Stdout)
}