cmd

package
v0.0.0-...-6b453b2 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapsedIteration

func CollapsedIteration(sp *startupParams) error

CollapsedIteration is a testing mode command that will iterate a model, collapse a single variable, and print the marginal, solution marginal, and error.

func DotOutput

func DotOutput(sp *startupParams) error

DotOutput reads a given model and outputs a graphviz description

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func PanicIf

func PanicIf(err error)

During startup in command line mode, we will panic on various errors

Types

type DiscardJSON

type DiscardJSON struct{}

DiscardJSON does nothing

func (*DiscardJSON) Encode

func (n *DiscardJSON) Encode(interface{}) error

Encode for DiscardJSON does nothing

func (*DiscardJSON) SetIndent

func (n *DiscardJSON) SetIndent(string, string)

SetIndent for DiscardJSON does nothing

type JSONLogger

type JSONLogger interface {
	Encode(v interface{}) error
	SetIndent(prefix, indent string)
}

JSONLogger is a simple interface for JSON logging (matches json.Encoder) and nil/no-op implementation

Jump to

Keyboard shortcuts

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