@@ -76,7 +76,7 @@ parse([{token, Tok} | Ts], Tree, [#{node_type := NodeType} | _] = Acc, Txn, Cmd)
7676 {ok , #{node_type := container } = Item } ->
7777 NewCmd = maps :get (cmd_type , Item , Cmd ),
7878 Children = menu_item_children (Item , Txn , NewCmd ),
79- ? DBG (" Adding Container Item in container = ~p~ n " , [Item ]),
79+ ? DBG (" Adding Container Item in container = ~p children ~p~ n" , [Item , Children ]),
8080 parse (Ts , Children , [Item | Acc ], Txn , NewCmd );
8181 {ok , #{node_type := Leaf , type := Type } = Item } when Leaf == leaf ; Leaf == leaf_list ->
8282 % % Expecting a leaf value, possibly followed by more entries in the same
@@ -211,7 +211,7 @@ parse_list_keys([{token, Tok} | Ts], #{key_names := KeyNames, key_values := KeyV
211211 % % Got the list keys, carry on in the main parser
212212 Children = menu_item_children (Item1 , Txn , Cmd ),
213213 parse (Ts , Children , [Item1 | Acc ], Txn , Cmd );
214- true ->
214+ true ->
215215 parse_list_keys (Ts , Item1 , Acc , Txn , Cmd )
216216 end .
217217
@@ -251,7 +251,7 @@ expand_after_space([], [#{node_type := leaf, value := _Val} | _Acc], _Txn, _Cmd)
251251 % % This leaf has a value, but no peer items. End of the command
252252 no ;
253253expand_after_space (Tree , [#{node_type := leaf , value := _Val } | _Acc ], _Txn , _Cmd ) ->
254- % % This leaf has a value. Show the remaining Menu items
254+ % % This leaf has a value. Show the remaining Menu items
255255 Menu = ecli :format_menu (Tree ),
256256 {yes , " " , Menu };
257257expand_after_space (_Menu , [#{node_type := leaf , desc := Desc , type := Type } | _Acc ], _Txn , _Cmd ) ->
@@ -332,7 +332,7 @@ remove(Tok, Tree) ->
332332% % each key in sequence. Once we have all list keys children become
333333% % the items inside the list item, minus the list key names.
334334menu_item_children (Item , Txn , CmdType ) ->
335- ecli_util :children (Item , Txn , CmdType ).
335+ ecli_util :children (Item , Txn , CmdType ).
336336
337337% % Find characters to add to fill up to where the node names diverge
338338% % e.g. names configure and contain given an input of "c" should return "on"
@@ -342,7 +342,7 @@ expand_menus(Str, Menus) ->
342342 Suffixes = lists :map (fun (#{name := Name }) ->
343343 lists :nthtail (StrLen , Name );
344344 (# cmd {name = Name }) ->
345- lists :nthtail (StrLen , Name )
345+ lists :nthtail (StrLen , Name )
346346 end , Menus ),
347347 % % ?DBG("expand_menus ML = ~p~n",[Suffixes]),
348348 longest_common_prefix (Suffixes ).
0 commit comments