refactor(org-change): changed io.notevc to org.notevc
This commit is contained in:
@@ -9,13 +9,13 @@ plugins {
|
||||
id("org.graalvm.buildtools.native") version "0.10.4"
|
||||
}
|
||||
|
||||
group = "io.notevc"
|
||||
version = "1.0.4"
|
||||
group = "org.notevc"
|
||||
version = "1.0.5"
|
||||
|
||||
buildConfig {
|
||||
buildConfigField("String", "VERSION", "\"${project.version}\"")
|
||||
buildConfigField("String", "BUILD_TIME", "\"${Instant.now()}\"")
|
||||
packageName("io.notevc")
|
||||
packageName("org.notevc")
|
||||
}
|
||||
|
||||
repositories {
|
||||
@@ -32,13 +32,13 @@ dependencies {
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("io.notevc.NoteVCKt")
|
||||
mainClass.set("org.notevc.NoteVCKt")
|
||||
}
|
||||
|
||||
tasks.shadowJar {
|
||||
archiveClassifier.set("")
|
||||
manifest {
|
||||
attributes(mapOf("Main-Class" to "io.notevc.NoteVCKt"))
|
||||
attributes(mapOf("Main-Class" to "org.notevc.NoteVCKt"))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ graalvmNative {
|
||||
binaries {
|
||||
named("main") {
|
||||
imageName.set("notevc")
|
||||
mainClass.set("io.notevc.NoteVCKt")
|
||||
mainClass.set("org.notevc.NoteVCKt")
|
||||
|
||||
buildArgs.addAll(listOf(
|
||||
"--no-fallback",
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.cli
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.cli
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.core
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.core
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.storage
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.storage
|
||||
@@ -1 +0,0 @@
|
||||
package io.notevc.utils
|
||||
@@ -1,8 +1,8 @@
|
||||
package io.notevc
|
||||
package org.notevc
|
||||
|
||||
import io.notevc.core.Repository
|
||||
import io.notevc.commands.*
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.core.Repository
|
||||
import org.notevc.commands.*
|
||||
import org.notevc.utils.ColorUtils
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
// Parse global flags first (like --no-color)
|
||||
@@ -99,6 +99,7 @@ fun main(args: Array<String>) {
|
||||
|
||||
else -> {
|
||||
println("Usage: notevc [--no-color] init|commit|status|log|restore|diff|show|version")
|
||||
println("For more info, visit: ${ColorUtils.bold("https://notevc.org")}")
|
||||
}
|
||||
}
|
||||
}
|
||||
1
src/main/kotlin/org/notevc/cli/CommandParser.kt
Normal file
1
src/main/kotlin/org/notevc/cli/CommandParser.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.cli
|
||||
1
src/main/kotlin/org/notevc/cli/OutputFormatter.kt
Normal file
1
src/main/kotlin/org/notevc/cli/OutputFormatter.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.cli
|
||||
@@ -1,13 +1,13 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import io.notevc.utils.FileUtils
|
||||
import io.notevc.utils.HashUtils
|
||||
import org.notevc.core.*
|
||||
import org.notevc.utils.FileUtils
|
||||
import org.notevc.utils.HashUtils
|
||||
import kotlinx.serialization.encodeToString
|
||||
import kotlinx.serialization.json.Json
|
||||
import java.nio.file.Files
|
||||
import java.time.Instant
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.utils.ColorUtils
|
||||
import kotlin.io.path.*
|
||||
|
||||
class CommitCommand {
|
||||
@@ -1,7 +1,7 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.core.*
|
||||
import org.notevc.utils.ColorUtils
|
||||
import kotlinx.serialization.json.Json
|
||||
import java.nio.file.Files
|
||||
import java.time.Instant
|
||||
@@ -245,7 +245,7 @@ class DiffCommand {
|
||||
}
|
||||
listOf(targetFile)
|
||||
} else {
|
||||
io.notevc.utils.FileUtils.findMarkdownFiles(repo.path).map {
|
||||
org.notevc.utils.FileUtils.findMarkdownFiles(repo.path).map {
|
||||
repo.path.relativize(it).toString()
|
||||
}
|
||||
}
|
||||
@@ -302,7 +302,7 @@ class DiffCommand {
|
||||
}
|
||||
listOf(targetFile)
|
||||
} else {
|
||||
io.notevc.utils.FileUtils.findMarkdownFiles(repo.path).map {
|
||||
org.notevc.utils.FileUtils.findMarkdownFiles(repo.path).map {
|
||||
repo.path.relativize(it).toString()
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.Repository
|
||||
import org.notevc.core.Repository
|
||||
import java.nio.file.Path
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.utils.ColorUtils
|
||||
|
||||
class InitCommand {
|
||||
fun execute(path: String?): Result<String> {
|
||||
@@ -1,10 +1,10 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import org.notevc.core.*
|
||||
import kotlinx.serialization.json.Json
|
||||
import java.nio.file.Files
|
||||
import java.time.Instant
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.utils.ColorUtils
|
||||
import java.time.ZoneId
|
||||
import java.time.format.DateTimeFormatter
|
||||
import kotlin.io.path.*
|
||||
@@ -1,7 +1,7 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.core.*
|
||||
import org.notevc.utils.ColorUtils
|
||||
import kotlinx.serialization.json.Json
|
||||
import java.nio.file.Files
|
||||
import java.time.Instant
|
||||
@@ -1,7 +1,7 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import io.notevc.utils.ColorUtils
|
||||
import org.notevc.core.*
|
||||
import org.notevc.utils.ColorUtils
|
||||
import kotlinx.serialization.json.Json
|
||||
import java.nio.file.Files
|
||||
import java.time.Instant
|
||||
@@ -1,9 +1,9 @@
|
||||
package io.notevc.commands
|
||||
package org.notevc.commands
|
||||
|
||||
import io.notevc.core.*
|
||||
import io.notevc.utils.FileUtils
|
||||
import io.notevc.utils.ColorUtils
|
||||
import io.notevc.core.Repository.Companion.NOTEVC_DIR
|
||||
import org.notevc.core.*
|
||||
import org.notevc.utils.FileUtils
|
||||
import org.notevc.utils.ColorUtils
|
||||
import org.notevc.core.Repository.Companion.NOTEVC_DIR
|
||||
import java.time.Instant
|
||||
|
||||
class StatusCommand {
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.notevc.core
|
||||
package org.notevc.core
|
||||
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@@ -123,7 +123,7 @@ class BlockParser {
|
||||
private fun generateBlockId(filePath: String, heading: String, order: Int): String {
|
||||
val cleanHeading = heading.replace(Regex("^#+\\s*"), "").trim()
|
||||
val baseId = "$filePath:$cleanHeading:$order"
|
||||
return io.notevc.utils.HashUtils.sha256(baseId).take(12)
|
||||
return org.notevc.utils.HashUtils.sha256(baseId).take(12)
|
||||
}
|
||||
|
||||
// Reconstruct file from blocks
|
||||
@@ -1,6 +1,6 @@
|
||||
package io.notevc.core
|
||||
package org.notevc.core
|
||||
|
||||
import io.notevc.utils.HashUtils
|
||||
import org.notevc.utils.HashUtils
|
||||
import kotlinx.serialization.Serializable
|
||||
import kotlinx.serialization.encodeToString
|
||||
import kotlinx.serialization.json.Json
|
||||
1
src/main/kotlin/org/notevc/core/NoteSnapshot.kt
Normal file
1
src/main/kotlin/org/notevc/core/NoteSnapshot.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.core
|
||||
@@ -1,7 +1,7 @@
|
||||
package io.notevc.core
|
||||
package org.notevc.core
|
||||
|
||||
import java.nio.file.Files
|
||||
import io.notevc.utils.HashUtils
|
||||
import org.notevc.utils.HashUtils
|
||||
import java.nio.file.Path
|
||||
import java.io.ByteArrayOutputStream
|
||||
import java.util.zip.GZIPOutputStream
|
||||
@@ -1,9 +1,9 @@
|
||||
package io.notevc.core
|
||||
package org.notevc.core
|
||||
|
||||
import java.nio.file.Path
|
||||
import java.nio.file.Paths
|
||||
import kotlin.io.path.*
|
||||
import io.notevc.BuildConfig
|
||||
import org.notevc.BuildConfig
|
||||
import kotlinx.serialization.*
|
||||
import kotlinx.serialization.json.Json
|
||||
import kotlinx.serialization.encodeToString
|
||||
1
src/main/kotlin/org/notevc/core/Timeline.kt
Normal file
1
src/main/kotlin/org/notevc/core/Timeline.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.core
|
||||
1
src/main/kotlin/org/notevc/storage/FileStorage.kt
Normal file
1
src/main/kotlin/org/notevc/storage/FileStorage.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.storage
|
||||
1
src/main/kotlin/org/notevc/storage/MetadataStorage.kt
Normal file
1
src/main/kotlin/org/notevc/storage/MetadataStorage.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.storage
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.notevc.utils
|
||||
package org.notevc.utils
|
||||
|
||||
object ColorUtils {
|
||||
// ANSI color codes
|
||||
@@ -1,10 +1,10 @@
|
||||
package io.notevc.utils
|
||||
package org.notevc.utils
|
||||
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Path
|
||||
import java.time.Instant
|
||||
import kotlin.io.path.*
|
||||
import io.notevc.core.Repository.Companion.NOTEVC_DIR
|
||||
import org.notevc.core.Repository.Companion.NOTEVC_DIR
|
||||
|
||||
object FileUtils {
|
||||
// Find all markdown files in directory (recursively)
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.notevc.utils
|
||||
package org.notevc.utils
|
||||
|
||||
import java.security.MessageDigest
|
||||
|
||||
1
src/main/kotlin/org/notevc/utils/TimeUtils.kt
Normal file
1
src/main/kotlin/org/notevc/utils/TimeUtils.kt
Normal file
@@ -0,0 +1 @@
|
||||
package org.notevc.utils
|
||||
Reference in New Issue
Block a user