Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.39 KB

README.md

File metadata and controls

55 lines (40 loc) · 1.39 KB

store

The command-line interface (CLI) application developed in Go, to upload, update, delete, and list plain-text files on server (server's source code). Alongside this, the CLI can output all words in all files on the server and most frequent words of them. The CLI does this in optimal way, taking minimum time to count words and frequent words.

First of all, we need to launch server in docker so that app can make requests to it.

store deploy

Deploys server to docker

Synopsis

store deploy

deploys server on docker

Options

  -h, --help          help for deploy
  -p, --port string   server port (default "9254")

store add

Now, let's upload a file to server example:

store add -f ./data/file.txt

output:

File `file.txt` is uploaded successfully

you can upload multiple files as well

store add -f ./data/file1.txt -f ./data/file2.txt

Options

  -f, --file stringArray   Files to be uploaded on server
  -h, --help               help for add

SEE ALSO