TapeTrack Documentation

Because there is more to tape management than you ever realized

User Tools

Site Tools


technote:markdown_reports

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technote:markdown_reports [2026/09/18 01:14] – [Validation] Scott Cunliffetechnote:markdown_reports [2026/09/18 01:21] (current) – [References] Scott Cunliffe
Line 43: Line 43:
 set "TMSSREPORTFORMAT=MARKDOWN" set "TMSSREPORTFORMAT=MARKDOWN"
  
-TMSS10Inventory </code>+TMSS10Inventory 
 +</code>
  
 Using the quoted ''set'' syntax prevents accidental trailing spaces from becoming part of the environment variable value. Using the quoted ''set'' syntax prevents accidental trailing spaces from becoming part of the environment variable value.
Line 94: Line 95:
 set "TMSSREPORTFORMAT=MARKDOWN" set "TMSSREPORTFORMAT=MARKDOWN"
  
-TMSS10Inventory > out.md 2> err.txt </code>+TMSS10Inventory > out.md 2> err.txt 
 +</code>
  
 The processing flow is: The processing flow is:
Line 116: Line 118:
 set "TMSSREPORTFORMAT=MARKDOWN" set "TMSSREPORTFORMAT=MARKDOWN"
  
-TMSS10Inventory > out.md 2> err.txt </code>+TMSS10Inventory > out.md 2> err.txt 
 +</code>
  
 A subsequent execution can save the second report as: A subsequent execution can save the second report as:
Line 124: Line 127:
 set "TMSSREPORTFORMAT=MARKDOWN" set "TMSSREPORTFORMAT=MARKDOWN"
  
-TMSS10Inventory > out2.md 2> err2.txt </code>+TMSS10Inventory > out2.md 2> err2.txt 
 +</code>
  
 The directory may then contain: The directory may then contain:
Line 206: Line 210:
 ``` ```
  
-} </code>+} 
 +</code>
  
 This example displays the contents of ''out.md'' and colours lines red when the corresponding line in ''out2.md'' is different. This example displays the contents of ''out.md'' and colours lines red when the corresponding line in ''out2.md'' is different.
Line 246: Line 251:
 TMSS10Inventory > out.md 2> err.txt TMSS10Inventory > out.md 2> err.txt
  
-glow -s dark -w 120 .\out.md </code>+glow -s dark -w 120 .\out.md 
 +</code>
  
 After generating a second report: After generating a second report:
Line 253: Line 259:
 glow -s dark -w 120 .\out2.md glow -s dark -w 120 .\out2.md
  
-Compare-Object (Get-Content .\out.md) (Get-Content .\out2.md) </code>+Compare-Object (Get-Content .\out.md) (Get-Content .\out2.md) 
 +</code>
  
 ===== Validation ===== ===== Validation =====
Line 259: Line 266:
 After setting up Markdown report generation, verify the following: After setting up Markdown report generation, verify the following:
  
-  * The ''TMSSREPORTFORMAT'' environment variable is set to ''MARKDOWN''+* The ''TMSSREPORTFORMAT'' environment variable is set to ''MARKDOWN''
-  * The TapeTrack utility completes normally. +* The TapeTrack utility completes normally. 
-  * The standard output file contains Markdown. +* The standard output file contains Markdown. 
-  * The report can be opened with Glow. +* The report can be opened with Glow. 
-  * The Markdown table is rendered correctly. +* The Markdown table is rendered correctly. 
-  * Standard error is captured separately when required. +* Standard error is captured separately when required. 
-  * A second report can be generated without overwriting the first report. +* A second report can be generated without overwriting the first report. 
-  * Differences between reports can be identified using a comparison tool.+* Differences between reports can be identified using a comparison tool.
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 309: Line 316:
 * [[https://github.com/charmbracelet/glow|Glow Markdown Renderer]] * [[https://github.com/charmbracelet/glow|Glow Markdown Renderer]]
 * [[https://github.com/charmbracelet/glow#the-cli|Glow CLI]] * [[https://github.com/charmbracelet/glow#the-cli|Glow CLI]]
 +
 +
 +{{tag> technote markdown glow}}
  
technote/markdown_reports.1789694059.txt.gz · Last modified: 2026/09/18 01:14 by Scott Cunliffe