Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support -html flag to render output as HTML #70

Merged
merged 5 commits into from
Mar 9, 2024
Merged

Commits on Mar 2, 2024

  1. support -html flag to render output as HTML

    This addresses issue #69 to support HTML output.
    
    This also...
    
    - updates the README usage docs
    - validates that multiple, conflicting format flags are not provided
    - fixes a bug in the tests to properly validate expected tf-summarize errors
    
    Signed-off-by: Mike Ball <mikedball@gmail.com>
    mdb committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    13c1bf5 View commit details
    Browse the repository at this point in the history
  2. improve tests to exercise outputs

    Previously, the tf-summarize tests did not exercise the tool's ability
    to summarize plan outputs. This fixes that!
    mdb committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    7d36e0f View commit details
    Browse the repository at this point in the history
  3. ensure 'make help' outputs details on all targets

    By adding a code comment in association with all Make targets, `make
    help` now documents all targets:
    
    ```
    $ make help
    build                          build the binary
    example                        generate example Terraform plan
    help                           prints help (only for tasks with comment)
    i                              build and install to /usr/local/bin/
    install                        build and install to /usr/local/bin/
    lint                           lint source code
    test                           go test
    ```
    mdb committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    f1183b5 View commit details
    Browse the repository at this point in the history
  4. put HTML resources in <code> within summary

    This makes the HTML output a bit more consistent with output elsewhere.
    mdb committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    4fbc85f View commit details
    Browse the repository at this point in the history
  5. protecting against stale tests runs

    This protects against false positives running the tests.
    mdb committed Mar 2, 2024
    Configuration menu
    Copy the full SHA
    11a7ef4 View commit details
    Browse the repository at this point in the history