Documentation ¶
Index ¶
- Constants
- type CLI
- func (ui *CLI) Edit(m []map[string]interface{}) ([]map[string]interface{}, error)
- func (ui *CLI) Merge(m, n map[string]interface{}) (map[string]interface{}, error)
- func (ui *CLI) PrettyDiff(mediaL, mediaR map[string]interface{})
- func (ui *CLI) PrettyPrint(medias ...map[string]interface{})
- func (ui *CLI) Printf(format string, a ...interface{})
- type Config
Constants ¶
View Source
const ( // DefaultFormatter is the name of the fallback Formatter DefaultFormatter = media.DefaultType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI is a user interface built for the command-line.
func NewFromConfig ¶ added in v0.3.2
NewFromConfig creates a CLI User Interface from a given Config
func (*CLI) Merge ¶
Merge spawns an editor that displays two maps and highlight their diff to facilitate change inspection and merge operation between them.
func (*CLI) PrettyDiff ¶
PrettyDiff shows in a pleasant manner differences between two metadata sets
func (*CLI) PrettyPrint ¶
PrettyPrint shows in a pleasant manner a metadata set
type Config ¶
type Config struct { // Auto is the flag that switches between automatic or manual actions when // editing or merging records' attributes Auto bool // OutputFormat selects the style of output to format records when printing // them. OutputFormat string // Formatters contains the list of templates to display information from // the store. Templates are organized by output style Formatters map[string]map[string]string // contains filtered or unexported fields }
Config describes configuration for User Interface
Click to show internal directories.
Click to hide internal directories.