mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-20 00:48:04 +00:00
scripts: Allow data collection script output to be hidden
Use a clever HTML trick to allow the output of the data collection script to be hidden / unhidden in the github.com interface. See the example at the top of https://github.com/kata-containers/runtime/issues/1347. Fixes #1386. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
4f34a54777
commit
5a271f06ce
@ -672,8 +672,27 @@ read_osbuilder_file()
|
|||||||
cat "$file"
|
cat "$file"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_header()
|
||||||
|
{
|
||||||
|
cat <<EOT
|
||||||
|
<details>
|
||||||
|
<summary>Show <tt>$script_name</tt> details</summary>
|
||||||
|
<p>
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
|
||||||
|
show_footer()
|
||||||
|
{
|
||||||
|
cat <<EOT
|
||||||
|
</p>
|
||||||
|
</details>
|
||||||
|
EOT
|
||||||
|
}
|
||||||
|
|
||||||
show_details()
|
show_details()
|
||||||
{
|
{
|
||||||
|
show_header
|
||||||
|
|
||||||
show_meta
|
show_meta
|
||||||
show_runtime
|
show_runtime
|
||||||
show_runtime_configs
|
show_runtime_configs
|
||||||
@ -683,6 +702,8 @@ show_details()
|
|||||||
show_log_details
|
show_log_details
|
||||||
show_container_mgr_details
|
show_container_mgr_details
|
||||||
show_package_versions
|
show_package_versions
|
||||||
|
|
||||||
|
show_footer
|
||||||
}
|
}
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
Reference in New Issue
Block a user