deven96 / deven96/ahnlich

Creating an `ahnlich-cli`

Open
#119 0 comments 0 reactions 1 assignee Claimed by @Iamdavidonuh View on GitHub
enhancement
Dominant language
Rust
Stars
244
Forks
29
Avg merge
2d 41m
Merged PRs (30d)
19

Description

In order to increase debuggability, we want to introduce a CLI that can be used to query either AI or DB binaries

To do so, we would make use of #18 to aid with parsing into `Vec` or `Vec`. The requirements are as follows
- [x] Connection to either AI or DB binaries via the Rust client. The server type must be confirmed as well via INFOSERVER
- [x] Makes use of the `dsl` package to be able to turn raw semicolon delineated strings into queries. It then turns these queries into `ServerQuery`
- [x] Normal REPL behaviour showing servertype, host and port in the prompt, executing the commands on enter, while showing potential errors that come from `dsl` parse, `db` or `ai`
- [x] Creating pipeline for deploying ahnlich-cli as a binary and also including it within the docker images for `ai` and `db`
- [x] Updating README to include CLI description, usage examples and potentially a byzanz-record demo

Nice to have:
- [ ] Autocompletion of commands. Rudimentarily this can be simple example usages such as
- [x] History file. Keeping track of all previously issued commands so as to allow the user be able to use arrow key to navigate upwards
- [ ] Coloration of reserved keywords
- [x] Clear screen command

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.