Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 798 Bytes

README.md

File metadata and controls

37 lines (26 loc) · 798 Bytes

JEC-kt

GitHub Actions status

Jabacat's Easy Config

JEC-py | JEC-rs | JEC-go | JEC-c | JEC-c++ | JEC-zig | JEC-ts | JEC-kt

API

ConfigFile
  - exists
  - remove
  - create
  - fromHome
  
ConfigDir
  - exists
  - remove
  - create
  - fromHome

Usage

val conf1 = ConfigFile("config.yml")
val conf2 = ConfigFile.fromHome("config.yml")

val dir1 = ConfigDir("config")
val dir2 = ConfigDir.fromHome("config")

if (!dir1.exists()) dir1.create()

dir1.remove()