Skip to content

Add other ways of injecting PanTableOption #31

@ickc

Description

@ickc

See #28 by @ber532k

Thoughts:

  • it could be related to pantable as a cli tool #10, when pantable is turned into a cli tool, what is suggested in Set default options from command line #28 is doable.

  • use env. var. to setup the default. In that case people can setup their own defaults in .bash_profile or .bashrc permanently. This is easy to do. And considering that pandoc is unlikely to provide a better way to pass cli options to filter, and the current recommended ways of passing info to filter is via env. var., this might be just the way to solve pantable as a cli tool #10

  • global defaults in YAML front matter. Another often suggested way to pass info to filter. A bit more complicated to do, since another function to walk the YAML is needed. This is more self-contained in the document though (i.e. more reproducible).

In the end may be all 3 methods should be provided as a hierarchy ways of defining the defaults. (priority, higher first: YAML in CSV table, YAML front matter, cli args, env. var., default)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions