cmd

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cmd contains helper functions for working with the Cobra command-line interface: github.com/spf13/cobra

Index

Constants

This section is empty.

Variables

View Source
var (
	Root *cobra.Command

	NoDb bool
)

Functions

func Add

func Add(command *cobra.Command)

Add a child command to the root

func Init

func Init(appName string, rootCmd *cobra.Command, get assets.AssetGet, dir assets.AssetDir) error

Init initalizes the cobra CLI for the specified command, if any

func Use

func Use(cmds ...string)

Use the commands with the names specified

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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