Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Sep 15, 2024
1 parent bf73432 commit 62232a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ docs/changelog.md
docs/index.md
kotlin-js-store/
.kotlin/
site/
12 changes: 7 additions & 5 deletions docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,19 @@ manage a database:

=== "Example"
```kotlin
class Database: CliktCommand(name="db") {
class Database : CliktCommand(name = "db") {
override fun run() = Unit
}

class Init: CliktCommand(help="Initialize the database") {

class Init : CliktCommand() {
override fun help(context: Context) = "Initialize the database"
override fun run() {
echo("Initialized the database.")
}
}

class Drop: CliktCommand(help="Drop the database") {

class Drop : CliktCommand() {
override fun help(context: Context) = "Drop the database"
override fun run() {
echo("Dropped the database.")
}
Expand Down

0 comments on commit 62232a3

Please sign in to comment.