cli

package
v0.0.0-...-e32210a Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(input AddCommandInput, keyring keyring.Keyring, aurlConfigFile *vault.ConfigFile) error

func ConfigureAddCommand

func ConfigureAddCommand(app *kingpin.Application, a *Aurl)

func ConfigureExecCommand

func ConfigureExecCommand(app *kingpin.Application, a *Aurl)

func ExecCommand

func ExecCommand(input ExecCommandInput, keyring keyring.Keyring, aurlConfigFile *vault.ConfigFile) (err error)

Types

type AddCommandInput

type AddCommandInput struct {
	ProfileName string
	// contains filtered or unexported fields
}

type Aurl

type Aurl struct {
	Verbose bool

	KeyringConfig keyring.Config

	KeyringBackend string
	// contains filtered or unexported fields
}

func ConfigureGlobals

func ConfigureGlobals(app *kingpin.Application) *Aurl

func (*Aurl) AurlConfigFile

func (a *Aurl) AurlConfigFile() (*vault.ConfigFile, error)

func (*Aurl) Keyring

func (a *Aurl) Keyring() (keyring.Keyring, error)

func (*Aurl) MustGetProfileNames

func (a *Aurl) MustGetProfileNames() []string

type ExecCommandInput

type ExecCommandInput struct {

	// for aurl options
	ProfileName string
	RenewToken  bool

	// for curl options
	Method       string
	Headers      []string
	Data         string
	Insecure     bool
	PrintBody    bool
	PrintHeaders bool

	TargetUrl string
}

Jump to

Keyboard shortcuts

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