Repositories written in Rust on GitHub:

# Misc

See the script, ./generate-projects.sh, that I use to generate all the above:

#!/usr/bin/env zsh
set -euf -o pipefail

# # For zsh
# setopt -s nullglob   # Non-matching globs are removed  ('*.foo' => '')
# setopt -s failglob   # Non-matching globs throw errors
# setopt -s nocaseglob # Case insensitive globs
# setopt -s globstar   # Allow ** for recursive matches ('lib/**/*.rb' => 'lib/a/b/c.rb')

echo "" >> projects.md
wget -O repos.json 'https://api.github.com/orgs/banaio/repos'
# NB: Remove spaces from beginning and end of description string
cat repos.json | jq -r \
  '
.[] |
select(.language == "Rust") |
if (.description != null) then
  ("* **" + (.description | gsub("(^\\s+)|(\\s+$)";"")) + ":** [" + .html_url + "]" + "(" + .html_url + ")")
else
  ("* [" + .html_url + "]" + "(" + .html_url + ")")
end
' >> projects.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Last Updated: Tuesday, 11 August 2020