custom

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

package custom allows for the creation of a custom-branded CLI that packages together the kwil-cli, kwil-admin, and kwild CLIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCustomCmd

func NewCustomCmd(cmdConfig CommonCmdConfig) *cobra.Command

Types

type CommonCmdConfig

type CommonCmdConfig struct {
	// RootCmd is the name of the command.
	RootCmd string
	// ProjectName is the name of the project, which will be used in the help text.
	ProjectName string
	// DefaultConfig is a function that allows the default configuration to be changed.
	DefaultConfig func(*config.KwildConfig)
}

CommonCmdConfig configures the root command.

Jump to

Keyboard shortcuts

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