seal-io / walrus

Walrus is an open-source application management platform based on IaC tools including OpenTofu, Terraform and others. It helps platform engineers build golden paths for developers and empowers developers with self-service capabilities.
Apache License 2.0
427 stars 48 forks source link

[CLI] Rename walrus environment clone-environment to clone #1741

Open aiwantaozi opened 10 months ago

aiwantaozi commented 10 months ago
image

Walrus Version:

v0.4.1

Finenyaco commented 10 months ago

Environment

clone-environment renamed to clone.

 ~/ walrus environment -h
Usage:
  walrus environment [command]

Available Commands:
  clone                    Clone for an environment.
  create                   Create an environment.
  delete                   Delete an environment.
  get                      Get an environment.
  get-resource-definitions Get resource definitions for an environment.
  list                     Get environments.
  start                    Start for an environment.
  stop                     Stop for an environment.
  update                   Update an environment.

However, I don't understand the difference between `walrus environment clone" and "walrus environment create", because users need to input the attributes for the resource in both cases.

 ~/ walrus environment clone -h
Usage:
  walrus environment clone [flags]

Flags:
      --connectors jsonArray     (default []...)
      --description string
      --draft
      --labels stringToString    (default [])
      --name string
  -o, --output string           Output format [table, json, yaml] (default "table")
      --type string
      --variables jsonArray      (default []...)

Global Flags:
  -d, --debug   Enable debug log
  -h, --help    Help for this command
 ~/
 ~/
 ~/ walrus environment create -h
Usage:
  walrus environment create [flags]

Flags:
      --connectors jsonArray     (default []...)
      --description string
      --labels stringToString    (default [])
      --name string
  -o, --output string           Output format [table, json, yaml] (default "table")
      --type string
      --variables jsonArray      (default []...)

Global Flags:
  -d, --debug   Enable debug log
  -h, --help    Help for this command