Skip to content

Commit 7cff149

Browse files
authored
Merge pull request #6206 from grondo/trace-tab-completion
etc: add flux module/overlay trace to bash tab completion
2 parents c449fad + 5184b2e commit 7cff149

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

etc/completions/flux.pre

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ _flux_kvs()
11341134
_flux_overlay()
11351135
{
11361136
local cmd=$1
1137-
local subcmds="status lookup parentof disconnect"
1137+
local subcmds="status lookup parentof disconnect trace"
11381138
local split=false
11391139

11401140
local status_OPTS="\
@@ -1160,6 +1160,14 @@ _flux_overlay()
11601160
-h --help \
11611161
-r --parent= \
11621162
"
1163+
local trace_OPTS="\
1164+
-h --help \
1165+
-r --rank= \
1166+
-t --type= \
1167+
-L --color= \
1168+
-H --human \
1169+
-d --delta \
1170+
"
11631171
_flux_split_longopt && split=true
11641172
case $prev in
11651173
-!(-*)[rtwH])
@@ -1254,7 +1262,7 @@ _flux_admin()
12541262
_flux_module()
12551263
{
12561264
local cmd=$1
1257-
local subcmds_module_arg="remove reload stats debug"
1265+
local subcmds_module_arg="remove reload stats debug trace"
12581266
local subcmds="list load ${subcmds_module_arg}"
12591267
local split=false
12601268

@@ -1284,6 +1292,14 @@ _flux_module()
12841292
local list_OPTS="\
12851293
-l --long \
12861294
"
1295+
local trace_OPTS="\
1296+
-h --help \
1297+
-T --topic= \
1298+
-t --type= \
1299+
-L --color= \
1300+
-H --human \
1301+
-d --delta \
1302+
"
12871303
if [[ $cmd != "module" ]]; then
12881304

12891305
_flux_split_longopt && split=true

0 commit comments

Comments
 (0)