cmd

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 14 Imported by: 0

README

Flamingo cmd package

Based on spf13/cobra.

Usage

Register your own commands via dingo multibindings to *cobra.Command.

Start the root command by injecting *cobra.Command annotated with flamingo.

Includes the RootCommand and some helpful Commands.

Just run your main project file to see the list of registered commands.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(injector *dingo.Injector) error

Run the root command todo: still in use?

Types

type Module

type Module struct{}

Module for DI

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Configure DI

func (*Module) DefaultConfig

func (m *Module) DefaultConfig() config.Map

DefaultConfig specifies the command name

Directories

Path Synopsis
interfaces

Jump to

Keyboard shortcuts

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