Skip to content

Commit

Permalink
Update docs (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt authored Sep 15, 2024
1 parent bf73432 commit 4867ae3
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 4867ae3

Please sign in to comment.