Skip to content

Commit 084b8d4

Browse files
authored
Merge pull request #614 from DefangLabs/612-cli-doc-generation-fails-because-of-incorrect-cmd-alias-implementation
Avoid adding subcommands to multiple parent commands
2 parents 2520be6 + 5a42edc commit 084b8d4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cmd/cli/command/commands.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ func SetupCommands(version string) {
218218
composeCmd.AddCommand(composeStartCmd)
219219
composeCmd.AddCommand(composeRestartCmd)
220220
composeCmd.AddCommand(composeStopCmd)
221-
composeCmd.AddCommand(getServicesCmd) // like docker compose ls
221+
// composeCmd.AddCommand(getServicesCmd) // like docker compose ls
222222
RootCmd.AddCommand(composeCmd)
223223

224224
// Add up/down commands to the root as well
225-
RootCmd.AddCommand(composeDownCmd)
226-
RootCmd.AddCommand(composeUpCmd)
225+
// RootCmd.AddCommand(composeDownCmd)
226+
// RootCmd.AddCommand(composeUpCmd)
227227
// RootCmd.AddCommand(composeStartCmd)
228228
// RootCmd.AddCommand(composeRestartCmd)
229229
// RootCmd.AddCommand(composeStopCmd)
@@ -386,7 +386,7 @@ var RootCmd = &cobra.Command{
386386
var loginCmd = &cobra.Command{
387387
Use: "login",
388388
Args: cobra.NoArgs,
389-
Short: "Authenticate to the Defang cluster",
389+
Short: "Authenticate to Defang",
390390
RunE: func(cmd *cobra.Command, args []string) error {
391391
if nonInteractive {
392392
if err := cli.NonInteractiveLogin(cmd.Context(), client, cluster); err != nil {
@@ -641,7 +641,7 @@ var getServicesCmd = &cobra.Command{
641641
Annotations: authNeededAnnotation,
642642
Args: cobra.NoArgs,
643643
Aliases: []string{"getServices", "ls", "list"},
644-
Short: "Get list of services on the cluster",
644+
Short: "Get list of services in the project",
645645
RunE: func(cmd *cobra.Command, args []string) error {
646646
long, _ := cmd.Flags().GetBool("long")
647647

0 commit comments

Comments
 (0)