Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "annotate", Usage: "Replace citation references in markdown files with formatted citation links", Action: annotate, Flags: append([]cli.Flag{ &cli.StringFlag{ Name: "gedcom", Aliases: []string{"g"}, Usage: "GEDCOM file to read from", Destination: &opts.gedcomFile, }, &cli.StringFlag{ Name: "gramps", Usage: "Gramps xml file to read from", Destination: &opts.grampsFile, }, &cli.StringFlag{ Name: "gramps-dbname", Usage: "Name of the gramps database, used to keep IDs consistent between versions of the same database", Destination: &opts.grampsDatabaseName, }, &cli.StringFlag{ Name: "config", Aliases: []string{"c"}, Usage: "Path to a KDL tree configuration file", Required: true, Destination: &opts.treeConfig, }, &cli.StringFlag{ Name: "dir", Aliases: []string{"d"}, Usage: "Path to the folder of markdown files to annotate", Destination: &opts.markdownDir, Required: true, }, &cli.BoolFlag{ Name: "dry-run", Aliases: []string{"n"}, Usage: "List changes without modifying files", Destination: &opts.dryRun, }, &cli.BoolFlag{ Name: "undo", Usage: "Restore original footnote references, removing generated citations", Destination: &opts.undo, }, &cli.StringFlag{ Name: "basepath", Aliases: []string{"b"}, Usage: "Base URL path for the tree site, used to generate citation links", Value: "/", Destination: &opts.basePath, }, }, logging.Flags...), }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.