File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,27 @@ fn main() -> io::Result<()> {
6161
6262 let commands = vec ! [
6363 "test" . into( ) ,
64+ "clear" . into( ) ,
65+ "exit" . into( ) ,
66+ "history 1" . into( ) ,
67+ "history 2" . into( ) ,
68+ "logout" . into( ) ,
69+ "login" . into( ) ,
6470 "hello world" . into( ) ,
6571 "hello world reedline" . into( ) ,
72+ "hello world something" . into( ) ,
73+ "hello world another" . into( ) ,
74+ "hello world 1" . into( ) ,
75+ "hello world 2" . into( ) ,
76+ "hello another very large option for hello word that will force one column" . into( ) ,
6677 "this is the reedline crate" . into( ) ,
78+ "abaaabas" . into( ) ,
79+ "abaaacas" . into( ) ,
80+ "ababac" . into( ) ,
81+ "abacaxyc" . into( ) ,
82+ "abadarabc" . into( ) ,
6783 ] ;
84+
6885 let completer = Box :: new ( DefaultCompleter :: new_with_wordlen ( commands, 2 ) ) ;
6986
7087 // Use the interactive menu to select options from the completer
You can’t perform that action at this time.
0 commit comments