cli

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2017 License: GPL-2.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(fn func(types.AppArgs))

Run the cli application

Types

type AppArgs

type AppArgs struct {
	cli.Helper
	PortNumber int    `cli:"p,port" usage:"the port the application will listen on" dft:"2800"`
	Htpasswd   string `cli:"w,password" usage:"the htpasswd file to use for authentication" dft:".htpasswd"`
	Secret     string `cli:"s,secret" usage:"the secret to use for the application" dft:".appsecret"`
	TmpDir     string `cli:"t,tmpdir" usage:"the temporary location for cached files" dft:"tmp"`
}

AppArgs are the application arguments to run the application

func (*AppArgs) HtpasswdPath

func (a *AppArgs) HtpasswdPath() string

HtpasswdPath is the path for the htpasswd file

func (*AppArgs) Port

func (a *AppArgs) Port() int

Port is the port number for the application

func (*AppArgs) SecretPath

func (a *AppArgs) SecretPath() string

SecretPath is the path for the application secret

func (*AppArgs) TmpDirPath

func (a *AppArgs) TmpDirPath() string

TmpDirPath return the path to the temporary files directory

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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