commands

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeCMD

type ServeCMD struct {
	PublicURL string `short:"u" long:"public-url" env:"PUBLIC_URL" description:"Public URL for redirects" default:"http://127.0.0.1:8080"`
	Bind      string `short:"b" long:"bind" env:"BIND" description:"API binding address" default:"127.0.0.1:8080"`
	Dir       string `short:"d" long:"dir" env:"DIR" description:"Directory to store notes" default:"notes"`
	Token     string `short:"t" long:"token" env:"TOKEN" description:"Authorization token, empty means any token can be usedauth is disabled"`
}

func (*ServeCMD) Execute

func (cmd *ServeCMD) Execute([]string) error

Jump to

Keyboard shortcuts

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