mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
12 lines
384 B
Bash
Executable File
12 lines
384 B
Bash
Executable File
#!/bin/sh
|
|
|
|
scriptdir=$(dirname $(readlink -f $0))
|
|
|
|
echo "# Conditions"
|
|
echo
|
|
|
|
$scriptdir/../cmd/carapace/carapace --condition \
|
|
| sed -r 's_(https://[^ ]+)_[\1](\1)_' \
|
|
| sed 's_^\([^ ]\+\) \+\(.*\)_- [\1]\(https://pkg.go.dev/github.com/carapace-sh/carapace-bin/pkg/conditions/#Condition\1) \2_' \
|
|
| sed -e ':loop' -e 's_\(carapace-bin/pkg/condition/[^#]*\)[.]_\1/_' -e 't loop'
|