Skip to content
This repository has been archived by the owner on Jun 6, 2022. It is now read-only.

Improve templating #96

Merged
merged 4 commits into from
Jan 24, 2019
Merged

Improve templating #96

merged 4 commits into from
Jan 24, 2019

Commits on Jan 23, 2019

  1. Re-factor template processing

    Previously the template string was being compiled every time it was
    used. Instead, compile it only once at the start, then use the
    compiled template each time it is needed.
    
    Signed-off-by: Tim Waugh <[email protected]>
    twaugh committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    2d37a46 View commit details
    Browse the repository at this point in the history
  2. Fix mistaken comment

    Signed-off-by: Tim Waugh <[email protected]>
    twaugh committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    f5b768d View commit details
    Browse the repository at this point in the history
  3. Add .Pkg field for templating and add it to the default template

    This commit adds a command line argument -o to control output format.
    The only defined format is go-template=... which does not add the
    package name by default, unlike the now-deprecated -template argument
    which always starts with the package name.
    
    Signed-off-by: Tim Waugh <[email protected]>
    twaugh committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    373af43 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b648bc0 View commit details
    Browse the repository at this point in the history