Skip to content

Commit 4867ae3

Browse files
authored
Update docs (#551)
1 parent bf73432 commit 4867ae3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ docs/changelog.md
1212
docs/index.md
1313
kotlin-js-store/
1414
.kotlin/
15+
site/

docs/quickstart.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)