[lttng-dev] lttng-bash_completion
Thibault, Daniel
Daniel.Thibault at drdc-rddc.gc.ca
Thu Sep 11 13:56:22 EDT 2014
The lttng-tools.git file extras/lttng-bash_completion is incomplete since the addition the load and save commands to LTTng's repertoire. The missing routines (inserted between _lttng_cmd_list() and _lttng_cmd_setsession()) would be:
_lttng_cmd_load() {
options=$(lttng load --list-options)
case $cur in
-*)
_lttng_complete_options
return
;;
*)
_lttng_complete_sessions
return
;;
esac
}
_lttng_cmd_save() {
options=$(lttng save --list-options)
case $cur in
-*)
_lttng_complete_options
return
;;
*)
_lttng_complete_sessions
return
;;
esac
}
I'll let someone else generate the patch.
Oh, and there's a bug with those two commands. See bug #835.
Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
RDDC - Centre de recherches de Valcartier | DRDC - Valcartier Research Centre
2459 route de la Bravoure
Québec QC G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>
More information about the lttng-dev
mailing list