File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ docs/changelog.md
12
12
docs /index.md
13
13
kotlin-js-store /
14
14
.kotlin /
15
+ site /
Original file line number Diff line number Diff line change @@ -79,17 +79,19 @@ manage a database:
79
79
80
80
=== "Example"
81
81
```kotlin
82
- class Database: CliktCommand(name= "db") {
82
+ class Database : CliktCommand(name = "db") {
83
83
override fun run() = Unit
84
84
}
85
-
86
- class Init: CliktCommand(help="Initialize the database") {
85
+
86
+ class Init : CliktCommand() {
87
+ override fun help(context: Context) = "Initialize the database"
87
88
override fun run() {
88
89
echo("Initialized the database.")
89
90
}
90
91
}
91
-
92
- class Drop: CliktCommand(help="Drop the database") {
92
+
93
+ class Drop : CliktCommand() {
94
+ override fun help(context: Context) = "Drop the database"
93
95
override fun run() {
94
96
echo("Dropped the database.")
95
97
}
You can’t perform that action at this time.
0 commit comments