Documentation
¶
Overview ¶
Package config validates flag values and command line arguments and converts them to read-only type-safe values for mdrip.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds configuration for an instance of mdrip.
func (*Config) BlockTimeOut ¶
BlockTimeOut is the duration to give a block to run before considering it dead.
func (*Config) HostAndPort ¶
HostAndPort for the server when in ModeDemo.
func (*Config) IgnoreTestFailure ¶
IgnoreTestFailure means don't exit with error if a test fails in ModeTest.
type ModeType ¶
type ModeType int
ModeType distinguishes the primary modes of execution in mdrip main.go. These could be separate programs, but don't want to require multiple downloads.
const ( // ModePrint - extract code to stdout. ModePrint ModeType // ModeTest - run extracted code in a subshell, reporting errors. ModeTest // ModeDemo - render markdown in a webserver. ModeDemo // ModeTmux - run a tiny server that connects tmux to an mdrip in ModeDemo. ModeTmux )
Click to show internal directories.
Click to hide internal directories.