cmd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

README

Command Line Interface (CLI) for DataRobot

Modules in this folder implement various command line commands and subcommands for interacting with DataRobot services.

There should be a one-to-one mapping between commands/subcommands and modules in this folder. Each module typically contains the logic for parsing command line arguments, handling user input, and invoking the appropriate functions from internal or tui packages to perform the desired operations.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   internalVersion.CliName,
	Short: "The " + internalVersion.AppName,
	Long: `
	The ` + internalVersion.AppName + ` is a command-line interface for interacting with
	DataRobot's application templates and authentication. It allows users to
	clone, configure, and deploy applications to their DataRobot production environment.
	`,

	PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {

		return initializeConfig(cmd)
	},
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute() error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ExecuteContext added in v0.1.5

func ExecuteContext(ctx context.Context) error

ExecuteContext executes the root command with the given context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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