mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
167 lines
6.1 KiB
HTML
167 lines
6.1 KiB
HTML
|
||
<!DOCTYPE html>
|
||
|
||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
<head>
|
||
<meta charset="utf-8" />
|
||
<title>A Few Terminal Tricks — Bake documentation</title>
|
||
<link rel="stylesheet" href="../_static/alabaster.css" type="text/css" />
|
||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
|
||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||
<link rel="index" title="Index" href="../genindex.html" />
|
||
<link rel="search" title="Search" href="../search.html" />
|
||
<link rel="prev" title="Basic Usage" href="basic_usage.html" />
|
||
|
||
<link rel="stylesheet" href="../_static/custom.css" type="text/css" />
|
||
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" />
|
||
|
||
</head><body>
|
||
|
||
|
||
<div class="document">
|
||
<div class="documentwrapper">
|
||
<div class="bodywrapper">
|
||
|
||
|
||
<div class="body" role="main">
|
||
|
||
<div class="section" id="a-few-terminal-tricks">
|
||
<h1>A Few Terminal Tricks<a class="headerlink" href="#a-few-terminal-tricks" title="Permalink to this headline">¶</a></h1>
|
||
<div class="section" id="viewing-the-task-names">
|
||
<h2>Viewing the Task Names<a class="headerlink" href="#viewing-the-task-names" title="Permalink to this headline">¶</a></h2>
|
||
<p>Running <cite>bake</cite> on the terminal will bring up all the tasks inside the <cite>Bakefile</cite>.</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ bake
|
||
</pre></div>
|
||
</div>
|
||
<p>It could show you something like this:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>- task1
|
||
- task2…
|
||
+ task2/subtask1.
|
||
- task2/subtask1
|
||
- task3/subtask1
|
||
- task4/subtask1
|
||
- task5/subtask1
|
||
- task6/subtask1
|
||
- task6/subtask2
|
||
- task6…
|
||
+ task6/subtask1 <span class="p">&</span> task6/subtask2.
|
||
</pre></div>
|
||
</div>
|
||
</div>
|
||
<div class="section" id="specifiying-task-levels">
|
||
<h2>Specifiying Task Levels<a class="headerlink" href="#specifiying-task-levels" title="Permalink to this headline">¶</a></h2>
|
||
<p>You can also specify the task level up to which you want to see your task list on the terminal. To do this, run:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ bake --levels <span class="m">2</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>This should show more nested subtasks (if there are any).</p>
|
||
<p>Note: 1 more tasks are available. Please use $ bake –levels 3 to see more.</p>
|
||
</div>
|
||
<div class="section" id="viewing-the-tasks-as-json">
|
||
<h2>Viewing The Tasks as JSON<a class="headerlink" href="#viewing-the-tasks-as-json" title="Permalink to this headline">¶</a></h2>
|
||
<p>To view the tasks as JSON upto a specific level, run:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>$ bake --json --levels <span class="m">2</span>
|
||
</pre></div>
|
||
</div>
|
||
<p>The output should look something like this:</p>
|
||
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="o">{</span>
|
||
<span class="s2">"tasks"</span>: <span class="o">{</span>
|
||
<span class="s2">"task1"</span>: <span class="o">{</span>
|
||
<span class="s2">"depends_on"</span>: <span class="o">[]</span>
|
||
<span class="o">}</span>,
|
||
<span class="s2">"task2"</span>: <span class="o">{</span>
|
||
<span class="s2">"depends_on"</span>: <span class="o">[</span>
|
||
<span class="s2">"task2/subtask1"</span>,
|
||
<span class="s2">"task2//subtask2"</span>
|
||
<span class="o">]</span>
|
||
<span class="o">}</span>,
|
||
<span class="s2">"task2/subtask1"</span>: <span class="o">{</span>
|
||
<span class="s2">"depends_on"</span>: <span class="o">[]</span>
|
||
|
||
....
|
||
</pre></div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
||
<div class="sphinxsidebarwrapper">
|
||
<h1 class="logo"><a href="../index.html">Bake</a></h1>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<h3>Navigation</h3>
|
||
<ul class="current">
|
||
<li class="toctree-l1"><a class="reference internal" href="installation.html">Installation</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="basic_usage.html">Basic Usage</a></li>
|
||
<li class="toctree-l1 current"><a class="current reference internal" href="#">A Few Terminal Tricks</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="#viewing-the-task-names">Viewing the Task Names</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#specifiying-task-levels">Specifiying Task Levels</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#viewing-the-tasks-as-json">Viewing The Tasks as JSON</a></li>
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
|
||
<div class="relations">
|
||
<h3>Related Topics</h3>
|
||
<ul>
|
||
<li><a href="../index.html">Documentation overview</a><ul>
|
||
<li>Previous: <a href="basic_usage.html" title="previous chapter">Basic Usage</a></li>
|
||
</ul></li>
|
||
</ul>
|
||
</div>
|
||
<div id="searchbox" style="display: none" role="search">
|
||
<h3 id="searchlabel">Quick search</h3>
|
||
<div class="searchformwrapper">
|
||
<form class="search" action="../search.html" method="get">
|
||
<input type="text" name="q" aria-labelledby="searchlabel" />
|
||
<input type="submit" value="Go" />
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<script type="text/javascript">$('#searchbox').show(0);</script>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
<div class="clearer"></div>
|
||
</div>
|
||
<div class="footer">
|
||
©2019, Kenneth Reitz.
|
||
|
||
|
|
||
Powered by <a href="http://sphinx-doc.org/">Sphinx 2.2.1</a>
|
||
& <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a>
|
||
|
||
|
|
||
<a href="../_sources/files/terminal_tricks.md.txt"
|
||
rel="nofollow">Page source</a>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
</body>
|
||
</html> |