#!/bin/bash
# ucm-tools-link: output a markdown list with links to tools on my website, and their descriptions
for tool; do
	path=$(wich "$tool")
	url=$(ucm-tools-url "$tool")
	desc=$(< "$path" sed -n '/^# /{ s/^# //; s/^[^:]*: //; p;q}')
	printf -- "- [%s](%s)" "$tool" "$url"
	if [ -n "$desc" ]; then
		printf ": %s" "$desc"
	fi
	echo
done
