Skip to content

ayushsatyam146/filestore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Filestore CLI

A CLI interface to an HTTP file server with multiple available commands. This CLI acts as a client which can add, remove, edit and list files on the server.

Getting started

  • First clone the repo

  • run go build

  • use ./filestore cmd... where cmd represents different commands listed below

  • Note : Add a .env file with BASE_URL=<YOUR_SERVER_URL> before running go build

  • To run the server visit filestore-server

Usage

add command will upload the files mentioned in the arguments to the server. add command supports multiple file uploads at once

./filestore add a.txt b.txt

ls command will list all the files present on the server

./filestore ls

rm command will delete the file mentioned in the next argument. In the below example a.txt will be deleted

./filestore rm a.txt

update command will update the file mentioned in the next argument. If the file's content are updated the same will be reflected on the server as well otherwise server's copy of the file will remain unchanged

./filestore update a.txt

wc command will list the count of all the words present in all the files

./filestore wc

freq-words command will list top 10 most frequently used words by default. You can change the order and number of responses

./filestore freq-words [--limit|-n 10] [--order=dsc|asc]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages