From db3016fe898f3630660622ce462f2c3c215e5fbd Mon Sep 17 00:00:00 2001 From: Pavel Sviderski Date: Wed, 30 Apr 2025 11:45:25 +1000 Subject: [PATCH] fix: --file flag description for uc deploy cmd --- cmd/uncloud/deploy.go | 2 +- pkg/client/compose/project.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/uncloud/deploy.go b/cmd/uncloud/deploy.go index fe722bc8..02b61e7a 100644 --- a/cmd/uncloud/deploy.go +++ b/cmd/uncloud/deploy.go @@ -40,7 +40,7 @@ func NewDeployCommand() *cobra.Command { } cmd.Flags().StringSliceVarP(&opts.files, "file", "f", nil, - "One or more Compose files to deploy services from. (default compose-ports-long.yaml)") + "One or more Compose files to deploy services from. (default compose.yaml)") cmd.Flags().StringVarP(&opts.context, "context", "c", "", "Name of the cluster context to deploy to (default is the current context)") // TODO: Consider adding a filter flag to specify which machines to deploy to but keep the rest running. diff --git a/pkg/client/compose/project.go b/pkg/client/compose/project.go index 1f2c401c..cad92e74 100644 --- a/pkg/client/compose/project.go +++ b/pkg/client/compose/project.go @@ -23,7 +23,7 @@ func LoadProject(ctx context.Context, paths []string) (*types.Project, error) { composecli.WithDotEnv, // Get compose file path set by COMPOSE_FILE. composecli.WithConfigFileEnv, - // If none was selected, get default compose-ports-long.yaml file from current dir or parent folders. + // If none was selected, get default Compose file names from current or parent folders. composecli.WithDefaultConfigPath, composecli.WithExtension(PortsExtensionKey, PortsSource{}), )