ktools is a command line application that provides useful developer tools. It's built as a kotlin multiplatform project and is currently available for macos (both X64 and ARM), linux and windows targets.
ktools --help
- View all available commandsktools uuid
- Creates a random UUIDktools unixtime
- Unix time conversionsktools hash
- Provides hash value for given file or stringktools encode
- Encodes some text content to specified formatktools decode
- Decodes some text content from specified formatktools prettyprint
- Pretty print commonly used text like json- ... and growing
Commands are written using Clikt and have help messages that can be viewed
using --help
option. Learn more about these commands here.
The function definitions for common code can be viewed here.
Download the latest executable from the releases page. You may have to provide executable permission for the file based on your setup.
Note for MacOS: The OS may prevent opening the executable since the app has not been notarized. You can temporarily override the settings to allow execution by heading to privacy and security settings and allowing execution as mentioned here.
For fun, mostly. I use the terminal extensively but often have to switch away from it to do time unit conversions, hashing, etc. I wanted a handy tool that runs in the terminal and also wanted to test kotlin multiplatform as a solution for scalable cross-platform applications.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details