mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Enable paths autocompletion for VM CLI #1131
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1131
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AnnaShaleva on GitHub (May 16, 2023).
Initially suggested in https://github.com/nspcc-dev/neo-go/issues/2993, ref. #3013 also.
We use the a separate github.com/chzyer/readline` library to read user input, and this library doesn't provide enough functionality for proper dynamic paths auto completion. I was able to properly autocomplete the top-level paths only (as presented in the example), going deeper causes too much kludges and doesn't work good. The problem with readline library is that it doesn't allow dynamic paths traversal during the program execution time (only to construct the full directories structure at the start of the program, but it can be really huge). Another problem is in handling relative paths.
Either we need to find a way to dynamically construct the file tree at the runtime or we need to use some other library for this (and maybe even replace readline library).