From ba9c3a9321508729440a174840c4c227eb2a7d68 Mon Sep 17 00:00:00 2001 From: Alex Severin Date: Mon, 11 Mar 2024 15:03:49 +0300 Subject: [PATCH] add install for cli --- Makefile.toml | 2 +- memcrab-cli/README.md | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index afde166..0d08eae 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -9,7 +9,7 @@ args = ["msrv"] [tasks.minlock] toolchain = "nightly" command = "cargo" -args = ["update", "-Zminimal-versions"] +args = ["update", "-Zdirect-minimal-versions"] [tasks.build] command = "cargo" diff --git a/memcrab-cli/README.md b/memcrab-cli/README.md index f90a335..c7ff392 100644 --- a/memcrab-cli/README.md +++ b/memcrab-cli/README.md @@ -2,15 +2,22 @@ Command line interface for memcrab. -# Usage +## Install -## Server +From the main branch: +```sh +cargo install --git https://github.com/cospectrum/memcrab memcrab-cli +``` + +## Usage + +### Server Start a server on TCP address `127.0.0.1:4949` ```bash memcrab-cli server -a 127.0.0.1:4949 & ``` -## Client +### Client Execute one and exit ```bash memcrab-cli client -a 127.0.0.1:4949 set key value @@ -18,6 +25,5 @@ memcrab-cli client -a 127.0.0.1:4949 set key value Start interactive REPL. Press Ctrl-d to exit. ```bash -memcrab-cli client -a 127.0.0.1:4949 +memcrab-cli client -a 127.0.0.1:4949 ``` -