koinos / koinos/koinos-cli

ABI Command not recognized at end of semicolon clause

Open
#57 1 comment 0 reactions 0 assignees View on GitHub
bug task
Dominant language
Go
Stars
7
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Since a semicolon clause is parsed all at once, commands that were registered in earlier commands do not get parsed properly.

There are several ways to handle this, the simplest is probably parsing single commands then spitting out the remainder. Then execution can happen followed by more parsing.

Commands might even have a flag that denotes that they "dirty" the parser.

Contributor guide

Open the contributing guide

Research direction

Trace the CLI's semicolon-clause parsing and command-registration flow, then reproduce a case where an earlier command registers an ABI command that appears later in the clause. The work is done when commands registered by earlier commands are recognized and parsed correctly before the remaining clause is executed.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
blockchain, cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.