tmsh::add_tabc¶
Description¶
This command can be used to add tab completion datasets. If one
argument is supplied it will be added to an anonymous dataset. The two
argument form allows one or more datasets to be constructed. The first
argument is the name of the dataset. The second argument is an item in
the dataset. Potential completions will be grouped based on the
category when they are displayed. Note that this command will only
have an affect if $tmsh::csh was set to “TABC”.
Examples¶
proc script::tabc {} {
foreach {pool} [tmsh::get_config /ltm pool] {
tmsh::add''tabc [tmsh::get''name $pool]
}
}
Results:
root@ltm1(Active)(tmos)# run cli script new.tcl <tab>
p1-pool p2-pool p3-pool