Skip to content

Commit

Permalink
feat(disti): init module
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 20, 2023
1 parent 6eaea43 commit f41c95a
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ include(
"unit-eval",
"unit-cli",

"unit-distillation",

"code-quality",

"examples:project-example",
Expand Down
9 changes: 9 additions & 0 deletions unit-distillation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Unit Distillation

Support case:

- explain code
- find bug
- trace exception
- refactor code
- code review
44 changes: 44 additions & 0 deletions unit-distillation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.shadow)
alias(libs.plugins.serialization)
application
}

dependencies {
implementation(libs.clikt)
implementation(libs.serialization.json)

implementation(libs.cf.language)
implementation(libs.kaml)

// Logging
implementation(libs.logging.slf4j.api)
implementation(libs.logging.logback.classic)

testImplementation(kotlin("test"))

testImplementation(libs.bundles.test)
}

tasks.test {
useJUnitPlatform()
}

application {
mainClass.set("cc.unitmesh.runner.DistillateKt")
}

tasks {
shadowJar {
manifest {
attributes(Pair("Main-Class", "cc.unitmesh.runner.DistillateKt"))
}
dependencies {
exclude(dependency("org.junit.jupiter:.*:.*"))
exclude(dependency("org.junit:.*:.*"))
exclude(dependency("junit:.*:.*"))
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package cc.unitmesh.distillate

import com.github.ajalt.clikt.core.CliktCommand

fun main(args: Array<String>) = DistillateCommand().main(args)

class DistillateCommand : CliktCommand() {
override fun run() {
TODO("Not yet implemented")
}

}

0 comments on commit f41c95a

Please sign in to comment.