Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SigHome         = "Home"
	SigBackHome     = "Back to Home Menu"
	SigBrowse       = "Browse requests"
	SigBackRequests = "Back to requests"
	SigExit         = "Exit"
	SigCreate       = "Create request"
	SigRun          = "Run"
	SigReqSelect    = "reqSelect"
	SigReqCreate    = "reqCreate"
	SigEdit         = "Edit"
	SigDelete       = "Delete"
	SigCurl         = "cURL"
	SigAbout        = "About"
)

Variables

This section is empty.

Functions

func Banner()

Banner

Types

type App

type App struct {
	SigChan  chan Signal
	Database *core.Database
}

func (*App) About

func (app *App) About() error

About

func (*App) Create

func (app *App) Create() error

Create Request creation workflow

func (*App) Delete

func (app *App) Delete(reqName string) error

Delete

func (*App) Edit

func (app *App) Edit(reqName string) error

Edit

func (*App) ErrorHandler

func (app *App) ErrorHandler(err error) error

func (*App) Home

func (app *App) Home() error

Home Display Home menu options

func (*App) Request

func (app *App) Request(reqName string, display bool) error

Request Display options after selecting a request

func (*App) Requests

func (app *App) Requests() error

Requests Display all available requests previously created by the user

func (*App) Run

func (app *App) Run()

Run Main run application method Consumes the channel, and acts accordingly

func (*App) RunRequest

func (app *App) RunRequest(reqName string) error

RunRequest Execute HTTP request, display response

func (*App) ShowCurl

func (app *App) ShowCurl(reqName string) error

ShowCurl Display formatted curl command for a request

type Signal

type Signal struct {
	Meta    string
	Sig     string
	Display bool
}

Jump to

Keyboard shortcuts

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