configuration

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version  bool   `ff:"short: v, long: version,  usage: 'show version'"`
	Tag      bool   `ff:"short: t, long: tag,      usage: 'show tag'"`
	Compress string `ff:"short: c, long: compress, usage: 'compress current folder'"`
	File     string `ff:"short: f, long: file,     usage: 'file to open (.tar.gz format)'"`
	GIT      string `ff:"short: g, long: git,      usage: 'git repository URL'"`
	Dir      string `ff:"short: d, long: dir,      usage: 'directory to open'"`
	Help     bool   `ff:"          long: help,     usage: 'help'"`

	Address string `ff:"short: h, long:host, default: 127.0.0.1, usage: 'address that present will listen on'"`
	Port    int    `ff:"short: p, long:port, default: 8080, usage: 'port that present will listen on'"`

	Security Security
	Controls Controls
}

func Get added in v0.9.5

func Get() Config

func (*Config) CheckPasswords added in v0.9.5

func (c *Config) CheckPasswords()

func (*Config) CompressPresentation added in v0.9.5

func (c *Config) CompressPresentation()

func (*Config) DecompressPresentation added in v0.9.5

func (c *Config) DecompressPresentation()

func (*Config) Git added in v0.9.5

func (c *Config) Git()

type Controls

type Controls struct {
	Menu          string `ff:"long: menu,              usage: 'keys that opens menu'"`
	NextPage      string `ff:"long: next-page,         usage: 'keys that go to next page'"`
	PreviousPage  string `ff:"long: previous-page,     usage: 'keys that go to previous page'"`
	TerminalCast  string `ff:"long: terminal-cast,     usage: 'keys that run commands'"`
	TerminalClose string `ff:"long: terminal-close,    usage: 'keys that closes terminal'"`
}

type Security

type Security struct {
	AdminPwd        string `ff:"long: admin-pwd,         usage: 'admin password'"`
	UserPwd         string `ff:"long: user-pwd,          usage: 'user password'"`
	AdminPwdDisable bool   `ff:"long: admin-pwd-disable, usage: 'disable admin password'"`
}

Jump to

Keyboard shortcuts

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