helpers

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package helpers provides a way for sub-commands to register themselves with backend implementations.

Backend implementations MUST add the proper code to the AddCommand function in order to participate in this sub-command registration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(producers ...CommandProducer)

AddCommand adds Commands produced by producers to the set of backend sub-commands.

Types

type CommandProducer

type CommandProducer func() *cobra.Command

CommandProducer produces new a Command instance that can be added to the set of backend sub-commands.

Jump to

Keyboard shortcuts

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