dmarro89 / dare-db

Dare-DB is a lightweight in-memory database written in Go, featuring Redis-inspired hashtables and HTTP/HTTPS endpoints for seamless data storage and retrieval, with Docker support for easy deployment
MIT License
16 stars 1 forks source link

Create interactive CLI #14

Open dmarro89 opened 1 month ago

dmarro89 commented 1 month ago

As for the architecture, the Database must be reachable also through a CLI. Some ideas : https://www.dolthub.com/blog/2023-03-29-interactive-shell-golang/ https://appmaster.io/blog/writing-cli-applications-go

vdmitriyev commented 1 month ago

Greate idea. Should we create a separate discussion to write down and discuss the parameters and commands, which the cli will be using?

dmarro89 commented 4 weeks ago

I don't know if there should be a different thread. I'll write down just right here.

vdmitriyev commented 4 weeks ago

Fine for me. I think that we need two types of commands for CLI:

  1. commands/parameters to start the shell (ip, port, login, password, etc.)
  2. commands/parameters to work in the shell
dmarro89 commented 4 weeks ago

Fine for me. I think that we need two types of commands for CLI:

  1. commands/parameters to start the shell (ip, port, login, password, etc.)

  2. commands/parameters to work in the shell

Yes, I agree with you. Could you provide a draft list of both commands/parameters?

vdmitriyev commented 3 weeks ago

I had created a discussion to CLI/ interactive shell and added some further information to parameters and commands: https://github.com/dmarro89/dare-db/discussions/16