Package-level declarations

Types

Link copied to clipboard
sealed class Either<T, R>
Link copied to clipboard
data class EitherNok<T, R>(val data: T) : Either<T, R>
Link copied to clipboard
data class EitherOk<T, R>(val data: R) : Either<T, R>
Link copied to clipboard
class FileWriter(file: File, content: String) : KlutterWriter

Default implementation of KlutterWriter which creates a new File and writes content to it.

Properties

Link copied to clipboard
val JSON: Json

Functions

Link copied to clipboard

Create a new File if it does not exist.

Link copied to clipboard
fun File.maybeCreateFolder(clearIfExists: Boolean = false): File

Create a new folder if it does not exist.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Convert a String to camelCase.

Link copied to clipboard

Convert a String to snake_case.

Link copied to clipboard

Return the File or throw a KlutterException if it does not exist.

Link copied to clipboard
infix fun File.write(printer: KlutterPrinter)