Toolbox is a command-line interface (CLI) tool designed to help you manage and organize your tasks efficiently. It provides a set of commands to handle various things effectively.
- Linux
- MacOS
- Windows
NOTE: Please set the environment variables as belows, to use the CLI
JSON_API_HOST=https://jsonplaceholder.typicode.com
Toolbox provides the following subcommands and options:
Lists todos based on specified options.
Options
- -c : Specifies the total number of todos to be listed.
- -t : Specifies the type of todos to be listed (complete, incomplete | to list both, leave it blank).
- -f : Specifies the filter type for todo index (even, odd | to list both, leave it blank).
List all todos:
toolbox todos list
List only complete todos:
toolbox todos list -t complete
List odd-numbered incomplete todos:
toolbox todos list -t incomplete -f odd
List even-numbered 5 todos:
toolbox todos list -f even -c 5
To install Toolbox, follow these steps:
Clone the repository to your local machine:
git clone https://github.com/priyank-amagi/toolbox.git
Navigate to the Toolbox directory:
cd toolbox
Build the CLI tool:
go build -o bin/toolbox (with GOOS=linux GOARCH=amd64 based on your host OS and Arch)