list

package
v0.12.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListCmd = &cobra.Command{
	Use:   "list",
	Short: "List environment variables in Hyphen",
	Long: `
The list command displays environment variables stored in Hyphen for your current project.

This command allows you to:
- View all environments associated with your project
- See key details about each environment, including ID, version, secret count, size, and publish date
- Display results in either a detailed list format or a concise table format

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 environment includes:
- ID: The unique identifier for the environment (default for the main environment)
- Version: The current version number of the environment
- Secrets Count: The number of secret variables stored in the environment
- Size: The total size of the environment data
- Published: The date and time when the environment was last published

Examples:
  hyphen list
  hyphen list --page-size 20
  hyphen list --page 2
  hyphen list --table
    `,
	Args: cobra.NoArgs,
	Run: func(cmd *cobra.Command, args []string) {
		if err := RunList(args); err != nil {
			cprint.Error(cmd, err)
		}
	},
}

Functions

func RunList

func RunList(args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL