File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
pacmc-cli/src/commonMain/kotlin/net/axay/pacmc/cli/commands Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class PacmcCommand : CliktCommand(
16
16
UpdateCommand (),
17
17
ListCommand (),
18
18
RefreshCommand (),
19
+ DebugCommand (),
19
20
)
20
21
}
21
22
You can’t perform that action at this time.
0 commit comments