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

Make memoria cli #24

Open
3 tasks
0xnullifier opened this issue Dec 16, 2024 · 1 comment
Open
3 tasks

Make memoria cli #24

0xnullifier opened this issue Dec 16, 2024 · 1 comment
Labels
enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then

Comments

@0xnullifier
Copy link
Collaborator

0xnullifier commented Dec 16, 2024

A cli is nothing but a way to call the golang function from the command line. Use famous libraries cobra or more to make the cli.

More cli issues wil be opened up as more functionalities are added to the codebase. Add code to cli.go

Basic Commands to Implement:

# Store a value
memoria add/put <key> <value> # 

# Get a value
memoria get <key>

# Initialize store
memoria init --path <directory> [--cache-size <size>] # this should init everthing in the base dir and restore the indexer and all to the initial state essentialy call the `memoria.New(o)` with some valid options

Tasks

  • Setup initial cli code
  • code for init command
  • code for get and add
@0xnullifier 0xnullifier added enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then labels Dec 16, 2024
@Ritchie6
Copy link
Contributor

I'm working on this issue #24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium Oh you have some experience with programming huh! Come on solve this then
Projects
None yet
Development

No branches or pull requests

2 participants