Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an ahnlich-cli #119

Open
7 of 9 tasks
deven96 opened this issue Sep 26, 2024 · 0 comments · Fixed by #118
Open
7 of 9 tasks

Creating an ahnlich-cli #119

deven96 opened this issue Sep 26, 2024 · 0 comments · Fixed by #118
Assignees
Labels
enhancement New feature or request

Comments

@deven96
Copy link
Owner

deven96 commented Sep 26, 2024

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<DBQuery> or Vec<AIQuery>. The requirements are as follows

  • Connection to either AI or DB binaries via the Rust client. The server type must be confirmed as well via INFOSERVER
  • Makes use of the dsl package to be able to turn raw semicolon delineated strings into queries. It then turns these queries into ServerQuery
  • 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
  • Creating pipeline for deploying ahnlich-cli as a binary and also including it within the docker images for ai and db
  • 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
  • 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
  • Clear screen command
@deven96 deven96 added the enhancement New feature or request label Sep 26, 2024
@Iamdavidonuh Iamdavidonuh linked a pull request Sep 26, 2024 that will close this issue
@Iamdavidonuh Iamdavidonuh reopened this Oct 2, 2024
@deven96 deven96 closed this as completed Dec 4, 2024
@deven96 deven96 reopened this Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants