cmd

package
v0.0.0-...-40a7325 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd exports a function to create easily a CLI based on cobra.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bot

func Bot() *cobra.Command

Bot returns a *cobra.Command

func Client

func Client() *cobra.Command

Client returns a *cobra.Command with multiple subcommands.

func Root

func Root(commands ...*cobra.Command) error

Root creates a root *cobra.Command and then adds to it the received *cobra.Commands, then it executes the root command returning an error if any.

func Server

func Server() *cobra.Command

Server returns a *cobra.Command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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