command

package
v0.0.0-...-88e6bb9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIdentifierParam

func GetIdentifierParam(name string) string

GetIdentifierParam checks and returns the record id/slug parameter.

func GetTeamParam

func GetTeamParam(name string) string

GetTeamParam checks and returns the team id/slug parameter.

func GetUserParam

func GetUserParam(name string) string

GetUserParam checks and returns the user id/slug parameter.

func Handle

func Handle(ccmd *cobra.Command, args []string, fn HandleFunc)

Handle wraps the command function handler.

func Run

func Run() error

Run parses the command line arguments and executes the program.

Types

type Client

type Client struct {
	*gopad.ClientWithResponses
}

Client simply wraps the openapi client including authentication.

type HandleFunc

type HandleFunc func(ccmd *cobra.Command, args []string, client *Client) error

HandleFunc is the real handle implementation.

Jump to

Keyboard shortcuts

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