status

package
v2.25.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StatusCmd = &cobra.Command{
	Use:           "status",
	Short:         "Get Jobs status",
	Long:          `Use this command to get the status of internal jobs.`,
	SilenceErrors: true,
	Example: `
	aperturectl cloud status
	`,
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		err := controller.PreRunE(cmd, args)
		if err != nil {
			return fmt.Errorf("failed to run controller pre-run: %w", err)
		}
		return nil
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		client, err := controller.StatusClient()
		if err != nil {
			return err
		}

		return utils.ParseStatus(client)
	},
	PersistentPostRun: controller.PostRun,
}

StatusCmd is the command to get a status of jobs.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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