Skip to content

Commit

Permalink
Deployed bf73432 with MkDocs version: 1.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Sep 15, 2024
1 parent 5494616 commit 1043b61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions quickstart/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2957,17 +2957,19 @@ <h2 id="nesting-commands">Nesting Commands<a class="headerlink" href="#nesting-c
<div class="tabbed-set tabbed-alternate" data-tabs="1:3"><input checked="checked" id="__tabbed_1_1" name="__tabbed_1" type="radio" /><input id="__tabbed_1_2" name="__tabbed_1" type="radio" /><input id="__tabbed_1_3" name="__tabbed_1" type="radio" /><div class="tabbed-labels"><label for="__tabbed_1_1">Example</label><label for="__tabbed_1_2">Usage</label><label for="__tabbed_1_3">Help Output</label></div>
<div class="tabbed-content">
<div class="tabbed-block">
<div class="highlight"><pre><span></span><code><span class="kd">class</span><span class="w"> </span><span class="nc">Database</span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s">&quot;db&quot;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<div class="highlight"><pre><span></span><code><span class="kd">class</span><span class="w"> </span><span class="nc">Database</span><span class="w"> </span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">(</span><span class="n">name</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;db&quot;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kd">override</span><span class="w"> </span><span class="kd">fun</span><span class="w"> </span><span class="nf">run</span><span class="p">()</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="kt">Unit</span>
<span class="p">}</span>

<span class="kd">class</span><span class="w"> </span><span class="nc">Init</span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">(</span><span class="n">help</span><span class="o">=</span><span class="s">&quot;Initialize the database&quot;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="kd">class</span><span class="w"> </span><span class="nc">Init</span><span class="w"> </span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kd">override</span><span class="w"> </span><span class="kd">fun</span><span class="w"> </span><span class="nf">help</span><span class="p">(</span><span class="n">context</span><span class="p">:</span><span class="w"> </span><span class="n">Context</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;Initialize the database&quot;</span>
<span class="w"> </span><span class="kd">override</span><span class="w"> </span><span class="kd">fun</span><span class="w"> </span><span class="nf">run</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">echo</span><span class="p">(</span><span class="s">&quot;Initialized the database.&quot;</span><span class="p">)</span>
<span class="w"> </span><span class="p">}</span>
<span class="p">}</span>

<span class="kd">class</span><span class="w"> </span><span class="nc">Drop</span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">(</span><span class="n">help</span><span class="o">=</span><span class="s">&quot;Drop the database&quot;</span><span class="p">)</span><span class="w"> </span><span class="p">{</span>
<span class="kd">class</span><span class="w"> </span><span class="nc">Drop</span><span class="w"> </span><span class="p">:</span><span class="w"> </span><span class="n">CliktCommand</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="kd">override</span><span class="w"> </span><span class="kd">fun</span><span class="w"> </span><span class="nf">help</span><span class="p">(</span><span class="n">context</span><span class="p">:</span><span class="w"> </span><span class="n">Context</span><span class="p">)</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="s">&quot;Drop the database&quot;</span>
<span class="w"> </span><span class="kd">override</span><span class="w"> </span><span class="kd">fun</span><span class="w"> </span><span class="nf">run</span><span class="p">()</span><span class="w"> </span><span class="p">{</span>
<span class="w"> </span><span class="n">echo</span><span class="p">(</span><span class="s">&quot;Dropped the database.&quot;</span><span class="p">)</span>
<span class="w"> </span><span class="p">}</span>
Expand Down
2 changes: 1 addition & 1 deletion search/search_index.json

Large diffs are not rendered by default.

Binary file modified sitemap.xml.gz
Binary file not shown.

0 comments on commit 1043b61

Please sign in to comment.