Commands
Usage: ktools [<options>] <command> [<args>]...
Options:
-v, --version Show the version and exit
-a, --about Learn more about ktools and exit
-h, --help Show this message and exit
Commands:
uuid Create a random UUID
unixtime Unix time conversions
hash Get hash value for given file or string
encode Encode text content
decode Decode text content
prettyprint Pretty print content
ktools version 0.1.0
ktools is a command line application that provides useful developer tools. It's built as a kotlin multiplatform project.
Learn more at https://github.com/sriniketh/ktools.
Libraries used:
app.softwork UUID Library : app.softwork:kotlinx-uuid-core : 0.0.22
Clikt : com.github.ajalt.clikt:clikt : 4.2.1
Colormath : com.github.ajalt.colormath:colormath : 3.3.1
Mordant : com.github.ajalt.mordant:mordant : 2.2.0
okio : com.squareup.okio:okio : 3.6.0
ktor-client-core : io.ktor:ktor-client-core : 2.3.7
ktor-events : io.ktor:ktor-events : 2.3.7
ktor-http : io.ktor:ktor-http : 2.3.7
ktor-io : io.ktor:ktor-io : 2.3.7
ktor-serialization : io.ktor:ktor-serialization : 2.3.7
ktor-utils : io.ktor:ktor-utils : 2.3.7
ktor-websocket-serialization : io.ktor:ktor-websocket-serialization : 2.3.7
ktor-websockets : io.ktor:ktor-websockets : 2.3.7
Java Native Access : net.java.dev.jna:jna : 5.13.0
Kotlin Stdlib : org.jetbrains.kotlin:kotlin-stdlib : 1.9.22
Kotlin Stdlib Jdk7 : org.jetbrains.kotlin:kotlin-stdlib-jdk7 : 1.8.20
Kotlin Stdlib Jdk8 : org.jetbrains.kotlin:kotlin-stdlib-jdk8 : 1.8.20
atomicfu : org.jetbrains.kotlinx:atomicfu : 0.20.2
kotlinx-coroutines-core : org.jetbrains.kotlinx:kotlinx-coroutines-core : 1.7.1
kotlinx-datetime : org.jetbrains.kotlinx:kotlinx-datetime : 0.4.1
kotlinx-serialization-core : org.jetbrains.kotlinx:kotlinx-serialization-core : 1.6.2
kotlinx-serialization-json : org.jetbrains.kotlinx:kotlinx-serialization-json : 1.6.2
markdown : org.jetbrains:markdown : 0.5.2
Licenses:
Apache-2.0 : Apache License 2.0 : https://spdx.org/licenses/Apache-2.0.html
LGPL-2.1-or-later : LGPL-2.1-or-later : https://www.gnu.org/licenses/old-licenses/lgpl-2.1
MIT : MIT License : https://spdx.org/licenses/MIT.html
Usage: ktools uuid [<options>]
Create a random UUID
Options:
-c, --case=(lower|upper) Use upper or lower case. Default is lower.
-h, --help Show this message and exit
Usage: ktools unixtime [<options>]
Unix time conversions
Convert time in millis to ISO 8601 format:
--millis=<text>
Convert time in ISO 8601 format to millis:
--iso=<text>
Options:
-o, --operation=(nowmillis|nowiso|millistoiso|isotomillis) Choose operation to perform: [nowmillis | nowiso | millistoiso | isotomillis]
-h, --help Show this message and exit
Usage: ktools hash [<options>] <algorithm>
Get hash value for given file or string
Options:
-f, --file=<value> File to get hash value for (provide filepath)
-s, --string=<value> String to get hash value for
-h, --help Show this message and exit
Arguments:
<algorithm> Algorithm to use for hashing: [MD5 | SHA1 | SHA256 | SHA512]
Usage: ktools encode [<options>] <format>
Encode text content
Options:
-s, --string=<text> Content that needs to be encoded
-h, --help Show this message and exit
Arguments:
<format> Format to encode to: [utf8 | base64]
Usage: ktools decode [<options>] <format>
Decode text content
Options:
-s, --string=<text> Content that needs to be decoded
-h, --help Show this message and exit
Arguments:
<format> Format to decode from: [utf8 | base64]
Usage: ktools prettyprint [<options>] <contenttype>
Pretty print content
Options:
-s, --string=<text> Content that needs to be formatted
-h, --help Show this message and exit
Arguments:
<contenttype> Pretty print content type: [json | cookie-header]