Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ListVersionsCmd = &cobra.Command{ Use: "list-versions [environment-id]", Short: "List versions of an environment in Hyphen", Long: ` The list-versions command displays different versions of a specific environment stored in Hyphen for your current project. This command allows you to: - View all versions of a specific environment - See key details about each version, including ID, version number, secret count, size, and publish date - Display results in either a detailed list format or a concise table format You must provide the environment ID as an argument. You can customize the output using the following flags: --page-size: Specify the number of results to display per page (default: 10) --page: Specify which page of results to display (default: 1) --table: Display results in a table format for a more compact view The information displayed for each version includes: - ID: The unique identifier for the environment - Version: The version number of the environment - Secrets Count: The number of secret variables stored in this version - Size: The total size of the environment data for this version - Published: The date and time when this version was published Examples: hyphen list-versions my-env-id hyphen list-versions my-env-id --page-size 20 hyphen list-versions my-env-id --page 2 hyphen list-versions my-env-id --table `, Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error { printer = cprint.NewCPrinter(flags.VerboseFlag) if err := RunListVersions(args[0]); err != nil { return err } return nil }, }
Functions ¶
func RunListVersions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.