cmd

package
v4.10.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

cmd defines commands of oceanctl.

Index

Constants

This section is empty.

Variables

View Source
var CreateCmd = &cobra.Command{
	Use:   "create",
	Short: "Create a resource to Ocean Storage in Kubernetes",
}

CreateCmd is a cobra command object which used for creating a resource to Ocean Storage in Kubernetes.

View Source
var RootCmd = &cobra.Command{
	SilenceUsage:      true,
	Use:               "oceanctl",
	Short:             "A CLI tool for Ocean Storage in Kubernetes",
	CompletionOptions: cobra.CompletionOptions{HiddenDefaultCmd: true},
	PersistentPreRunE: func(cmd *cobra.Command, args []string) error {
		err := startLogging()
		if err != nil {
			return err
		}
		return discoverOperating()
	},
}

RootCmd is a root command of oceanctl.

Functions

func Execute

func Execute() error

Execute runs the root command

Types

This section is empty.

Directories

Path Synopsis
Package options defines options which user can input
Package options defines options which user can input

Jump to

Keyboard shortcuts

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