]> git.sur5r.net Git - ngadmin/blob - cli/com_list.c
Cli: refactor, change coding style
[ngadmin] / cli / com_list.c
1
2 #include "commands.h"
3
4
5 bool do_list (int nb UNUSED, const char **com UNUSED, struct ngadmin *nga)
6 {
7         int n;
8         const struct swi_attr *sa;
9         
10         sa = ngadmin_getSwitchTab(nga, &n);
11         displaySwitchTab(sa, n);
12         
13         return true;
14 }
15
16