Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "genbio", Usage: "Print generated biographies for the given people (temporary, for iteration).", ArgsUsage: "[id...]", Action: genbioCmd, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "gramps", Usage: "Gramps xml file to read from", Destination: &cmdopts.grampsFile, }, &cli.StringFlag{ Name: "gramps-dbname", Usage: "Name of the gramps database, used to keep IDs consistent between versions of the same database", Destination: &cmdopts.grampsDatabaseName, }, }, logging.Flags...), }
Command is a temporary subcommand that prints the generated biography for each supplied identifier, used to iterate the generator against real data.
Functions ¶
func BioFromPerson ¶
BioFromPerson returns a plain-text short biography of p.
Types ¶
type Subject ¶
Subject is the input to Bio, carrying the facts a biography is drawn from. It currently embeds a model.Person; individual fields will be promoted onto Subject as the package is decoupled from the genster model.
func FromPerson ¶
FromPerson returns a Subject drawn from p.
Click to show internal directories.
Click to hide internal directories.