File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,6 @@ eval "$($(dirname $0)/adr-config)"
55# # usage: adr generate [REPORT [OPTION ...]]
66# #
77# # Generates summary documentation about the architecture decision records.
8- # #
9- # # The command `adr generate` lists the types of report.
108
119cmd=$1
1210
Original file line number Diff line number Diff line change 2525 echo " Run 'adr help COMMAND' for help on a specific command."
2626else
2727 grep -E ' ^##' " $cmdexe " | cut -c 4-
28+
29+ # Assumes only two levels of command / subcommand.
30+ subcmds=( $( compgen -G " $adr_bin_dir /_adr_$1 _" ' *' ) )
31+
32+ if (( ${# subcmds} > 0 ))
33+ then
34+ echo
35+ echo Subcommands:
36+ for f in " ${subcmds[@]} "
37+ do
38+ basename $f | cut -c $(( ${# 1} + 7 )) -
39+ done | sed " s/^/ adr $1 /"
40+ fi
2841fi
You can’t perform that action at this time.
0 commit comments