Commit eb26bbb
committed
cmd/viewcore: migrate from chzyer/readline to ergochat/readline
Replaced the readline module from github.com/chzyer/readline to github.com/ergochat/readline.
Key changes involve updating the auto-completion functionality and modifying the method calls to handle
the differences in the new readline API.
Details:
- Updated imports and removed old module dependencies.
- Replaced Terminal field references with Stdout method calls for shell output.
- Modified the cmdToCompleter function to adapt to the new PrefixCompleter structure.
- Ensured the completion tree is built using the new SetChildren and Children methods.
Signed-off-by: Mikel Olasagasti Uranga <[email protected]>1 parent 93976b9 commit eb26bbb
3 files changed
+12
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | 13 | | |
| 14 | + | |
16 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
7 | 3 | | |
8 | 4 | | |
9 | 5 | | |
| |||
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| 11 | + | |
| 12 | + | |
0 commit comments