#
_lttng_complete_sessions() {
- # TODO, maybe have a lttng list --simple or something like that
+ # TODO
+ # This code does nothing for now. When there is a mecanism to get the
+ # existing sessions, use it to fill the sessions variable.
+ local sessions
+ sessions=""
+ COMPREPLY=( $(compgen -W "${sessions}" -- $cur) )
return
}
COMPREPLY=( $(compgen -W "${list_opts}" -- $cur) )
return
;;
+ *)
+ _lttng_complete_sessions
+ return
esac
}
COMPREPLY=( $(compgen -W "${set_session_opts}" -- $cur) )
return
;;
+ *)
+ _lttng_complete_sessions
+ return
+ ;;
esac
}