multicall

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package multicall provides facilities to build a binary which behaves in different ways depending on how it has been invoked. It integrates directly with cobra, supporting CLI binaries with sub-commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCobra

func AddCobra(name string, cmd *cobra.Command) error

AddCobra adds a new multicall name backed by a cobra command. `name` is the command name and `cmd` is the cobra command that will be executed for the specified named command.

func MultiExecute

func MultiExecute(followLinks bool) error

MultiExecute dispatches execution based on binary name, optionally resolving links.

Types

This section is empty.

Jump to

Keyboard shortcuts

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