File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ docs/changelog.md
1212docs /index.md
1313kotlin-js-store /
1414.kotlin /
15+ site /
Original file line number Diff line number Diff line change @@ -79,17 +79,19 @@ manage a database:
7979
8080=== "Example"
8181 ```kotlin
82- class Database: CliktCommand(name= "db") {
82+ class Database : CliktCommand(name = "db") {
8383 override fun run() = Unit
8484 }
85-
86- class Init: CliktCommand(help="Initialize the database") {
85+
86+ class Init : CliktCommand() {
87+ override fun help(context: Context) = "Initialize the database"
8788 override fun run() {
8889 echo("Initialized the database.")
8990 }
9091 }
91-
92- class Drop: CliktCommand(help="Drop the database") {
92+
93+ class Drop : CliktCommand() {
94+ override fun help(context: Context) = "Drop the database"
9395 override fun run() {
9496 echo("Dropped the database.")
9597 }
You can’t perform that action at this time.
0 commit comments