settings

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: ISC Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runnable

type Runnable interface {
	Run(*Settings, string)
}

Runnable defines an interface for subcommands that take the global settings and a password.

var Runner Runnable

Runner is the subcommand to run after all arguments were parsed.

type Settings

type Settings struct {
	URL      string `long:"url" description:"The URL where the server listens for requests" required:"true"`
	Username string `long:"username" description:"The username for authenticating on the server" required:"true"`
}

Settings represents the global configuration for the program.

Jump to

Keyboard shortcuts

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