Skip to content

Commit fffeb23

Browse files
committed
Add debug test command for stable tests in packages
1 parent 9269d5d commit fffeb23

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package net.axay.pacmc.cli.commands
2+
3+
import com.github.ajalt.clikt.core.CliktCommand
4+
import com.github.ajalt.clikt.core.subcommands
5+
import net.axay.pacmc.cli.terminal
6+
7+
class DebugCommand : CliktCommand(
8+
name = "debug",
9+
help = "Debug the pacmc application",
10+
) {
11+
init {
12+
subcommands(Test())
13+
}
14+
15+
override fun run() = Unit
16+
17+
class Test : CliktCommand(
18+
name = "test",
19+
help = "Prints a stable test output",
20+
) {
21+
override fun run() {
22+
terminal.println("Hello user! pacmc works.")
23+
}
24+
}
25+
}

pacmc-cli/src/commonMain/kotlin/net/axay/pacmc/cli/commands/PacmcCommand.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class PacmcCommand : CliktCommand(
1616
UpdateCommand(),
1717
ListCommand(),
1818
RefreshCommand(),
19+
DebugCommand(),
1920
)
2021
}
2122

0 commit comments

Comments
 (0)