Toolbox CLI is a simple command-line tool that allows you to show ping and disk usage. It follows the Cobra CLI architecture, making it easy to add new commands and extend functionality.
To install Toolbox CLI, you need to have Go installed on your machine. Then, run the following command:
go get -u github.com/smadixd/toolbox-cli
Once you have installed Toolbox CLI, you can use it by running the following command:
toolbox-cli [command]
ping
: Show ping to a specified host.disk-usage
: Show disk usage of a specified directory.
For example, to ping google.com, you can run:
toolbox-cli net ping --url google.com
To check the disk usage of the current directory, you can run:
toolbox-cli info diskUsage
If you would like to contribute to Toolbox CLI, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Push your branch to your forked repository.
- Open a pull request to the main repository.
Toolbox CLI is licensed under the MIT License. See the LICENSE file for more information.