cli

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// Version info (set from main)
	Version = "0.2.0"
)

Functions

func Execute

func Execute()

Execute runs the root command

func GetAuth

func GetAuth() (string, string)

GetAuth returns auth credentials

func GetConfigFile

func GetConfigFile() string

GetConfigFile returns the config file path

func GetServerURL

func GetServerURL() string

GetServerURL returns the server URL based on flags

func IsJSON

func IsJSON() bool

IsJSON returns whether JSON output is enabled

func IsVerbose

func IsVerbose() bool

IsVerbose returns whether verbose output is enabled

func SetVersion

func SetVersion(v string)

SetVersion sets the version for the CLI

Types

type Client

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

Client is an HTTP client for capfox API

func NewClient

func NewClient() *Client

NewClient creates a new API client

func (*Client) Get

func (c *Client) Get(path string) ([]byte, int, error)

Get performs a GET request

func (*Client) Health

func (c *Client) Health() error

Health checks if server is running

func (*Client) Post

func (c *Client) Post(path string, body any) ([]byte, int, error)

Post performs a POST request with JSON body

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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