cli

package
v0.0.0-...-84d5eb4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommands

func RegisterCommands(app *cobra.Command, c *client.Client)

RegisterCommands registers the resource action CLI commands.

Types

type AddOperandsCommand

type AddOperandsCommand struct {
	// Left operand
	Left int
	// Right operand
	Right       int
	PrettyPrint bool
}

AddOperandsCommand is the command line data structure for the add action of operands

func (*AddOperandsCommand) RegisterFlags

func (cmd *AddOperandsCommand) RegisterFlags(cc *cobra.Command, c *client.Client)

RegisterFlags registers the command flags with the command line.

func (*AddOperandsCommand) Run

func (cmd *AddOperandsCommand) Run(c *client.Client, args []string) error

Run makes the HTTP request corresponding to the AddOperandsCommand command.

Jump to

Keyboard shortcuts

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