-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate-readme.sh
More file actions
executable file
·51 lines (42 loc) · 1.22 KB
/
update-readme.sh
File metadata and controls
executable file
·51 lines (42 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
set -o errexit # exit on error
set -o nounset # don't allow unset variables
# set -o xtrace # enable for debugging
echo "==== Main Command" > help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo "==== Collections" >> help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help collections >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo "==== GUIDs" >> help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help guids >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo "==== Transfer" >> help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help transfer >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo "==== Storage" >> help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help storage >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo "==== History" >> help.txt
echo >> help.txt
echo "----" >> help.txt
go run main.go help history >> help.txt
echo "----" >> help.txt
echo >> help.txt
echo ":WARNING - GENERATED FILE - DO NOT EDIT THIS FILE DIRECTLY, USE THE TEMPLATE AND update-readme.sh:" > README.adoc
sed '/=== Help/r help.txt' README.tmpl.adoc >> README.adoc