Skip to content

Commit c95e0e0

Browse files
author
Kristan Kenney
committed
Add script to generate CLI help list
Thanks @Pleskan
1 parent a6d600a commit c95e0e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hst_generate_clidocs.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
for file in /usr/local/hestia/bin/*; do
4+
echo "$file" >> ~/hestia_cli_help.txt
5+
[ -f "$file" ] && [ -x "$file" ] && "$file" >> ~/hestia_cli_help.txt
6+
done;
7+
8+
sed -i 's\/usr/local/hestia/bin/\\' ~/hestia_cli_help.txt

0 commit comments

Comments
 (0)