cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Version string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cherryToken, apiURL, Version string) *Client

func (*Client) API

func (c *Client) API(cmd *cobra.Command) *cherrygo.Client

func (*Client) Config

func (c *Client) Config(cmd *cobra.Command) *viper.Viper

func (*Client) ConfigFilePath added in v0.1.2

func (c *Client) ConfigFilePath(context string, withExtension bool) string

func (*Client) Format

func (c *Client) Format() outputs.Format

func (*Client) GetOptions

func (c *Client) GetOptions() *cherrygo.GetOptions

func (*Client) NewCommand

func (c *Client) NewCommand() *cobra.Command

func (*Client) SetToken

func (c *Client) SetToken(token string)

Jump to

Keyboard shortcuts

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