diff --git a/README.md b/README.md index 49dd348..4e30021 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ This repository maintains [bazel modules](https://bazel.build/external/module) for the various [cute_headers](https://github.com/RandyGaul/cute_headers). + | module | version | commit | | ------ | ------- | ------ | - | cute_c2 | 1.10 | [7a6299dedddb5b076f3530315c2a3f3745e4760f](https://github.com/RandyGaul/cute_headers/blob/7a6299dedddb5b076f3530315c2a3f3745e4760f/cute_c2.h) | | cute_math | 1.02 | [445d8cb94d5f662ab7932b36be4194780b33940e](https://github.com/RandyGaul/cute_headers/blob/445d8cb94d5f662ab7932b36be4194780b33940e/cute_math.h) | diff --git a/setup.nu b/setup.nu index 1c20764..c879b4b 100644 --- a/setup.nu +++ b/setup.nu @@ -31,11 +31,16 @@ def update_versions_readme_table [] { let begin_versions_table_str = ''; let end_versions_table_str = ''; + let table_header = [ + '| module | version | commit |', + '| ------ | ------- | ------ |', + ]; + let readme_contents_before = $readme_contents | split list $begin_versions_table_str | get 0 | append $begin_versions_table_str; let readme_contents_after = $readme_contents | split list $end_versions_table_str | get 1 | prepend $end_versions_table_str; let version_table_rows = $versions | columns | each {|col| module_readme_table_line $col ($versions | get $col) }; - ($readme_contents_before ++ $version_table_rows ++ $readme_contents_after) | save $readme_file_path -f --raw; + ($readme_contents_before ++ $table_header ++ $version_table_rows ++ $readme_contents_after) | save $readme_file_path -f --raw; } $versions | columns | each {|col| setup_module $col ($versions | get $col) }