Skip to content

Commit

Permalink
updated import statement for commands module in cli module
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpdev committed Jul 26, 2023
1 parent 36ae8cb commit 224808e
Show file tree
Hide file tree
Showing 52 changed files with 1,364 additions and 1,366 deletions.
44 changes: 22 additions & 22 deletions docs/Source/cli/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,8 @@ <h4 id="torrentfile.cli.Config.activate_logger" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\cli.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">71</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">70</span>
<span class="normal">71</span>
<span class="normal">72</span>
<span class="normal">73</span>
<span class="normal">74</span>
Expand All @@ -781,8 +782,7 @@ <h4 id="torrentfile.cli.Config.activate_logger" class="doc doc-heading">
<span class="normal">85</span>
<span class="normal">86</span>
<span class="normal">87</span>
<span class="normal">88</span>
<span class="normal">89</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="normal">88</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">activate_logger</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Activate the builtin logging mechanism when passed debug flag from CLI.</span>
Expand Down Expand Up @@ -829,7 +829,8 @@ <h4 id="torrentfile.cli.Config.activate_quiet" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\cli.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">59</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">58</span>
<span class="normal">59</span>
<span class="normal">60</span>
<span class="normal">61</span>
<span class="normal">62</span>
Expand All @@ -838,8 +839,7 @@ <h4 id="torrentfile.cli.Config.activate_quiet" class="doc doc-heading">
<span class="normal">65</span>
<span class="normal">66</span>
<span class="normal">67</span>
<span class="normal">68</span>
<span class="normal">69</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="normal">68</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="nd">@staticmethod</span>
<span class="k">def</span> <span class="nf">activate_quiet</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Activate quiet mode for the duration of the programs life.</span>
Expand Down Expand Up @@ -942,7 +942,8 @@ <h3 id="torrentfile.cli.TorrentFileHelpFormatter" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\cli.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"> 99</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"> 98</span>
<span class="normal"> 99</span>
<span class="normal">100</span>
<span class="normal">101</span>
<span class="normal">102</span>
Expand All @@ -959,8 +960,7 @@ <h3 id="torrentfile.cli.TorrentFileHelpFormatter" class="doc doc-heading">
<span class="normal">113</span>
<span class="normal">114</span>
<span class="normal">115</span>
<span class="normal">116</span>
<span class="normal">117</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span>
<span class="normal">116</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span>
<span class="n">prog</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
<span class="n">width</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">45</span><span class="p">,</span>
<span class="n">max_help_positions</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">45</span><span class="p">):</span>
Expand Down Expand Up @@ -1070,7 +1070,8 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\cli.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">198</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">197</span>
<span class="normal">198</span>
<span class="normal">199</span>
<span class="normal">200</span>
<span class="normal">201</span>
Expand Down Expand Up @@ -1526,8 +1527,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="normal">651</span>
<span class="normal">652</span>
<span class="normal">653</span>
<span class="normal">654</span>
<span class="normal">655</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">execute</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="nb">list</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
<span class="normal">654</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">execute</span><span class="p">(</span><span class="n">args</span><span class="p">:</span> <span class="nb">list</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">list</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Execute program with provided list of arguments.</span>

Expand Down Expand Up @@ -1752,7 +1752,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;path to content file or directory&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">create_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">create</span><span class="p">)</span>
<span class="n">create_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">create</span><span class="p">)</span>

<span class="n">edit_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;edit&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -1818,7 +1818,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;replaces current source with &lt;source&gt;&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">edit_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">edit</span><span class="p">)</span>
<span class="n">edit_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">edit</span><span class="p">)</span>

<span class="n">info_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;info&quot;</span><span class="p">,</span>
Expand All @@ -1834,7 +1834,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;path to torrent file&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">info_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">info</span><span class="p">)</span>
<span class="n">info_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">info</span><span class="p">)</span>

<span class="n">magnet_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;magnet&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -1868,7 +1868,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">metavar</span><span class="o">=</span><span class="s2">&quot;&lt;int&gt;&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">magnet_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">get_magnet</span><span class="p">)</span>
<span class="n">magnet_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">get_magnet</span><span class="p">)</span>

<span class="n">check_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;recheck&quot;</span><span class="p">,</span>
Expand All @@ -1892,7 +1892,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;path to content file or directory&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">check_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">recheck</span><span class="p">)</span>
<span class="n">check_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">recheck</span><span class="p">)</span>

<span class="n">rebuild_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;rebuild&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -1936,7 +1936,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;path to where torrents will be re-assembled&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">rebuild_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">rebuild</span><span class="p">)</span>
<span class="n">rebuild_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">rebuild</span><span class="p">)</span>

<span class="n">rename_parser</span> <span class="o">=</span> <span class="n">subparsers</span><span class="o">.</span><span class="n">add_parser</span><span class="p">(</span>
<span class="s2">&quot;rename&quot;</span><span class="p">,</span>
Expand All @@ -1952,7 +1952,7 @@ <h3 id="torrentfile.cli.execute" class="doc doc-heading">
<span class="n">help</span><span class="o">=</span><span class="s2">&quot;path to torrent file&quot;</span><span class="p">,</span>
<span class="p">)</span>

<span class="n">rename_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">rename</span><span class="p">)</span>
<span class="n">rename_parser</span><span class="o">.</span><span class="n">set_defaults</span><span class="p">(</span><span class="n">func</span><span class="o">=</span><span class="n">commands</span><span class="o">.</span><span class="n">rename</span><span class="p">)</span>

<span class="n">all_commands</span> <span class="o">=</span> <span class="p">[</span>
<span class="s2">&quot;m&quot;</span><span class="p">,</span>
Expand Down Expand Up @@ -2007,11 +2007,11 @@ <h3 id="torrentfile.cli.main" class="doc doc-heading">

<details class="quote">
<summary>Source code in <code>torrentfile\cli.py</code></summary>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">661</span>
<div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal">660</span>
<span class="normal">661</span>
<span class="normal">662</span>
<span class="normal">663</span>
<span class="normal">664</span>
<span class="normal">665</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">main</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="normal">664</span></pre></div></td><td class="code"><div><pre><span></span><code><span class="k">def</span> <span class="nf">main</span><span class="p">()</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Initiate main function for CLI script.</span>
<span class="sd"> &quot;&quot;&quot;</span>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/covindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h1>Coverage report:
</form>
<p class="text">
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
</div>
</header>
Expand Down Expand Up @@ -234,7 +234,7 @@ <h1>Coverage report:
<div class="content">
<p>
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
</div>
<aside class="hidden">
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___init___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -132,7 +132,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec___main___py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
</div>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions docs/coverage/d_1bc82e0ab2fcb2ec___main___py.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
<aside class="hidden">
<button type="button" class="button_next_chunk" data-shortcut="j"/>
Expand Down Expand Up @@ -121,7 +121,7 @@ <h2>
<a id="nextFileLink" class="nav" href="d_1bc82e0ab2fcb2ec_cli_py.html">&#xbb; next</a>
&nbsp; &nbsp; &nbsp;
<a class="nav" href="https://coverage.readthedocs.io/en/7.2.7">coverage.py v7.2.7</a>,
created at 2023-07-24 21:00 -0700
created at 2023-07-26 12:16 -0700
</p>
</div>
</footer>
Expand Down
Loading

0 comments on commit 224808e

Please sign in to comment.