feat: text block
This commit is contained in:
parent
d7681f09b3
commit
1a738a4c9c
3 changed files with 12 additions and 1 deletions
0
saved.yml
Normal file
0
saved.yml
Normal file
4
src/main/kotlin/xyz/atnrch/wrench/config/WrenchConfig.kt
Normal file
4
src/main/kotlin/xyz/atnrch/wrench/config/WrenchConfig.kt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
package xyz.atnrch.wrench.config
|
||||||
|
|
||||||
|
class WrenchConfig {
|
||||||
|
}
|
|
@ -10,7 +10,14 @@ class WatcherManager(private val entries: MutableMap<Int, WatcherEntry>) {
|
||||||
val watcherEntry = WatcherEntry(file, arrayListOf())
|
val watcherEntry = WatcherEntry(file, arrayListOf())
|
||||||
currentId += 1
|
currentId += 1
|
||||||
entries[currentId] = watcherEntry
|
entries[currentId] = watcherEntry
|
||||||
Logger.info("Tracking new file:\n ID: $currentId\n Name: ${file.name}\n Path: ${file.absolutePath}")
|
Logger.info(
|
||||||
|
"""
|
||||||
|
Tracking new file:
|
||||||
|
ID: $currentId
|
||||||
|
Name: ${file.name}
|
||||||
|
Path: ${file.absolutePath}
|
||||||
|
""".trimIndent()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun removeFile(id: Int) {
|
fun removeFile(id: Int) {
|
||||||
|
|
Reference in a new issue