config

package
v0.0.0-...-bf280d8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandBuilder

func AddCommandBuilder(f CommandBuilder)

AddCommandBuilder takes the provided function and adds it to the list of commands that will be added to the root command when it is built.

func NewCommand

func NewCommand(cfg *config.ProjectConfig) *cobra.Command

NewCommand builds the config subcommand.

Types

type CommandBuilder

type CommandBuilder func(*config.ProjectConfig) *cobra.Command

CommandBuilder is a function that takes the project config as an argument and returns a cobra command.

Jump to

Keyboard shortcuts

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