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.") }