Commit cac3e03
committed
cmd/viewcore: migrate from chzyer/readline to ergochat/readline
Module ergochat/readline is a fork that is actively maintained and
includes numerous bug fixes that are not present in the original module.
Additionally, this change reduces the number of indirect dependencies by
removing the need for github.com/chzyer/logex and
github.com/chzyer/test.
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 2917a7a commit cac3e03
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