axcli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package axcli generates Cobra CLI commands that send Ax messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlagName

func FlagName(f reflect.StructField) string

FlagName returns the name of the flag to use for f.

func FlagUsage

func FlagUsage(f reflect.StructField) string

FlagUsage returns the usage string to use for the flag that populates f.

func NewCommand

func NewCommand(s ax.Sender, mt ax.MessageType) (*cobra.Command, error)

NewCommand generates a CLI command for given message type.

func NewCommands

func NewCommands(
	s ax.Sender,
	t ax.MessageTypeSet,
) ([]*cobra.Command, error)

NewCommands returns new CLI commands for each of the given message types.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳