From 62232a386849877b6d102589390baa38c3514d58 Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 15 Sep 2024 16:23:18 -0700 Subject: [PATCH] Update docs --- .gitignore | 1 + docs/quickstart.md | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 67445126..af467603 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ docs/changelog.md docs/index.md kotlin-js-store/ .kotlin/ +site/ diff --git a/docs/quickstart.md b/docs/quickstart.md index bcf70b70..2ec2b088 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -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.") }