952 lines
		
	
	
		
			69 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			952 lines
		
	
	
		
			69 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
 | |
| 
 | |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 | |
|   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | |
| 
 | |
| 
 | |
| <html xmlns="http://www.w3.org/1999/xhtml">
 | |
|   <head>
 | |
|     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 | |
|     
 | |
|     <title>cli Package — Lorax 19.7.11 documentation</title>
 | |
|     
 | |
|     <link rel="stylesheet" href="_static/default.css" type="text/css" />
 | |
|     <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
 | |
|     
 | |
|     <script type="text/javascript">
 | |
|       var DOCUMENTATION_OPTIONS = {
 | |
|         URL_ROOT:    '',
 | |
|         VERSION:     '19.7.11',
 | |
|         COLLAPSE_INDEX: false,
 | |
|         FILE_SUFFIX: '.html',
 | |
|         HAS_SOURCE:  true
 | |
|       };
 | |
|     </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>
 | |
|     <link rel="top" title="Lorax 19.7.11 documentation" href="index.html" />
 | |
|     <link rel="up" title="composer Package" href="composer.html" />
 | |
|     <link rel="next" title="pylorax Package" href="pylorax.html" />
 | |
|     <link rel="prev" title="composer Package" href="composer.html" /> 
 | |
|   </head>
 | |
|   <body>
 | |
|     <div class="related">
 | |
|       <h3>Navigation</h3>
 | |
|       <ul>
 | |
|         <li class="right" style="margin-right: 10px">
 | |
|           <a href="genindex.html" title="General Index"
 | |
|              accesskey="I">index</a></li>
 | |
|         <li class="right" >
 | |
|           <a href="py-modindex.html" title="Python Module Index"
 | |
|              >modules</a> |</li>
 | |
|         <li class="right" >
 | |
|           <a href="pylorax.html" title="pylorax Package"
 | |
|              accesskey="N">next</a> |</li>
 | |
|         <li class="right" >
 | |
|           <a href="composer.html" title="composer Package"
 | |
|              accesskey="P">previous</a> |</li>
 | |
|         <li><a href="index.html">Lorax 19.7.11 documentation</a> »</li>
 | |
|           <li><a href="modules.html" >src</a> »</li>
 | |
|           <li><a href="composer.html" accesskey="U">composer Package</a> »</li> 
 | |
|       </ul>
 | |
|     </div>  
 | |
| 
 | |
|     <div class="document">
 | |
|       <div class="documentwrapper">
 | |
|         <div class="bodywrapper">
 | |
|           <div class="body">
 | |
|             
 | |
|   <div class="section" id="cli-package">
 | |
| <h1>cli Package<a class="headerlink" href="#cli-package" title="Permalink to this headline">¶</a></h1>
 | |
| <div class="section" id="id1">
 | |
| <h2><tt class="xref py py-mod docutils literal"><span class="pre">cli</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
 | |
| <span class="target" id="module-composer.cli"></span><dl class="function">
 | |
| <dt id="composer.cli.main">
 | |
| <tt class="descclassname">composer.cli.</tt><tt class="descname">main</tt><big>(</big><em>opts</em><big>)</big><a class="reference internal" href="_modules/composer/cli.html#main"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.main" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Main program execution</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>opts</strong> (<a class="reference external" href="https://docs.python.org/2/library/argparse.html#argparse.Namespace" title="(in Python v2.7)"><em>argparse.Namespace</em></a>) – Cmdline arguments</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| <div class="section" id="module-composer.cli.compose">
 | |
| <span id="compose-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">compose</span></tt> Module<a class="headerlink" href="#module-composer.cli.compose" title="Permalink to this headline">¶</a></h2>
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_cancel">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_cancel</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_cancel"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_cancel" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Cancel a running compose</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose cancel <uuid></p>
 | |
| <p>This will cancel a running compose. It does nothing if the compose has finished.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_cmd">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_cmd</tt><big>(</big><em>opts</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_cmd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_cmd" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Process compose commands</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>opts</strong> (<a class="reference external" href="https://docs.python.org/2/library/argparse.html#argparse.Namespace" title="(in Python v2.7)"><em>argparse.Namespace</em></a>) – Cmdline arguments</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Value to return from sys.exit()</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>This dispatches the compose commands to a function</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_delete">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_delete</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_delete"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_delete" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Delete a finished compose’s results</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose delete <uuid,...></p>
 | |
| <p>Delete the listed compose results. It will only delete results for composes that have finished
 | |
| or failed, not a running compose.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_details">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_details</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_details"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_details" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Return detailed information about the compose</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose details <uuid></p>
 | |
| <p>This returns information about the compose, including the recipe and the dependencies.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_image">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_image</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_image"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_image" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Download the compose’s output image</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose image <uuid></p>
 | |
| <p>This downloads only the result image, saving it as the image name, which depends on the type
 | |
| of compose that was selected.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_log">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_log</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_log"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_log" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Show the last part of the compose log</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose log <uuid> [<size>kB]</p>
 | |
| <p>This will display the last 1kB of the compose’s log file. Can be used to follow progress
 | |
| during the build.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_logs">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_logs</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_logs"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_logs" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Download a tar of the compose’s logs</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose logs <uuid></p>
 | |
| <p>Saves the logs as uuid-logs.tar</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_metadata">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_metadata</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_metadata"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_metadata" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Download a tar file of the compose’s metadata</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose metadata <uuid></p>
 | |
| <p>Saves the metadata as uuid-metadata.tar</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_results">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_results</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_results"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_results" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Download a tar file of the compose’s results</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose results <uuid></p>
 | |
| <p>The results includes the metadata, output image, and logs.
 | |
| It is saved as uuid.tar</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_start">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_start</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_start" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Start a new compose using the selected recipe and type</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>compose start <recipe-name> <compose-type></p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_status">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_status</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em>, <em>testmode=0</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_status"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_status" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Return the status of all known composes</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>This doesn’t map directly to an API command, it combines the results from queue, finished,
 | |
| and failed so raw JSON output is not available.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.compose.compose_types">
 | |
| <tt class="descclassname">composer.cli.compose.</tt><tt class="descname">compose_types</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/compose.html#compose_types"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.compose.compose_types" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Return information about the supported compose types</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>Add additional details to types that are known to composer-cli. Raw JSON output does not
 | |
| include this extra information.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| <div class="section" id="module-composer.cli.modules">
 | |
| <span id="modules-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">modules</span></tt> Module<a class="headerlink" href="#module-composer.cli.modules" title="Permalink to this headline">¶</a></h2>
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.modules.modules_cmd">
 | |
| <tt class="descclassname">composer.cli.modules.</tt><tt class="descname">modules_cmd</tt><big>(</big><em>opts</em><big>)</big><a class="reference internal" href="_modules/composer/cli/modules.html#modules_cmd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.modules.modules_cmd" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Process modules commands</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>opts</strong> (<a class="reference external" href="https://docs.python.org/2/library/argparse.html#argparse.Namespace" title="(in Python v2.7)"><em>argparse.Namespace</em></a>) – Cmdline arguments</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Value to return from sys.exit()</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| <div class="section" id="module-composer.cli.projects">
 | |
| <span id="projects-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">projects</span></tt> Module<a class="headerlink" href="#module-composer.cli.projects" title="Permalink to this headline">¶</a></h2>
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.projects.projects_cmd">
 | |
| <tt class="descclassname">composer.cli.projects.</tt><tt class="descname">projects_cmd</tt><big>(</big><em>opts</em><big>)</big><a class="reference internal" href="_modules/composer/cli/projects.html#projects_cmd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.projects.projects_cmd" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Process projects commands</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>opts</strong> (<a class="reference external" href="https://docs.python.org/2/library/argparse.html#argparse.Namespace" title="(in Python v2.7)"><em>argparse.Namespace</em></a>) – Cmdline arguments</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Value to return from sys.exit()</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.projects.projects_info">
 | |
| <tt class="descclassname">composer.cli.projects.</tt><tt class="descname">projects_info</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/projects.html#projects_info"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.projects.projects_info" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Output info on a list of projects</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>projects info <project,...></p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.projects.projects_list">
 | |
| <tt class="descclassname">composer.cli.projects.</tt><tt class="descname">projects_list</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/projects.html#projects_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.projects.projects_list" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Output the list of available projects</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>projects list</p>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| <div class="section" id="module-composer.cli.recipes">
 | |
| <span id="recipes-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">recipes</span></tt> Module<a class="headerlink" href="#module-composer.cli.recipes" title="Permalink to this headline">¶</a></h2>
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.prettyCommitDetails">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">prettyCommitDetails</tt><big>(</big><em>change</em>, <em>indent=4</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#prettyCommitDetails"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.prettyCommitDetails" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Print the recipe’s change in a nice way</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>change</strong> (<a class="reference external" href="https://docs.python.org/2/library/stdtypes.html#dict" title="(in Python v2.7)"><em>dict</em></a>) – The individual recipe change dict</li>
 | |
| <li><strong>indent</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#int" title="(in Python v2.7)"><em>int</em></a>) – Number of spaces to indent</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.prettyDiffEntry">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">prettyDiffEntry</tt><big>(</big><em>diff</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#prettyDiffEntry"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.prettyDiffEntry" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Generate nice diff entry string.</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>diff</strong> (<a class="reference external" href="https://docs.python.org/2/library/stdtypes.html#dict" title="(in Python v2.7)"><em>dict</em></a>) – Difference entry dict</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Nice string</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_changes">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_changes</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_changes"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_changes" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Display the changes for each of the recipes</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes changes <recipe,...>     Display the changes for each recipe.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_cmd">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_cmd</tt><big>(</big><em>opts</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_cmd"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_cmd" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Process recipes commands</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>opts</strong> (<a class="reference external" href="https://docs.python.org/2/library/argparse.html#argparse.Namespace" title="(in Python v2.7)"><em>argparse.Namespace</em></a>) – Cmdline arguments</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Value to return from sys.exit()</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>This dispatches the recipes commands to a function</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_delete">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_delete</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_delete"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_delete" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Delete a recipe from the server</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>delete <recipe>          Delete a recipe from the server</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_depsolve">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_depsolve</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_depsolve"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_depsolve" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Display the packages needed to install the recipe</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes depsolve <recipe,...>    Display the packages needed to install the recipe.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_diff">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_diff</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_diff"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_diff" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Display the differences between 2 versions of a recipe</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <dl class="docutils">
 | |
| <dt>recipes diff <recipe-name>       Display the differences between 2 versions of a recipe.</dt>
 | |
| <dd><from-commit>       Commit hash or NEWEST
 | |
| <to-commit>         Commit hash, NEWEST, or WORKSPACE</dd>
 | |
| </dl>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_freeze">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_freeze</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_freeze"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_freeze" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Handle the recipes freeze commands</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes freeze <recipe,...>      Display the frozen recipe’s modules and packages.
 | |
| recipes freeze show <recipe,...> Display the frozen recipe in TOML format.
 | |
| recipes freeze save <recipe,...> Save the frozen recipe to a file, <recipe-name>.frozen.toml.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_freeze_save">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_freeze_save</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_freeze_save"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_freeze_save" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Save the frozen recipe to a TOML file</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes freeze save <recipe,...> Save the frozen recipe to a file, <recipe-name>.frozen.toml.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_freeze_show">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_freeze_show</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_freeze_show"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_freeze_show" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Show the frozen recipe in TOML format</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes freeze show <recipe,...> Display the frozen recipe in TOML format.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_list">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_list</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_list"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_list" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Output the list of available recipes</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes list</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_push">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_push</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_push"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_push" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Push a recipe TOML file to the server, updating the recipe</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>push <recipe>            Push a recipe TOML file to the server.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_save">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_save</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_save"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_save" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Save the recipe to a TOML file</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes save <recipe,...>        Save the recipe to a file, <recipe-name>.toml</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_show">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_show</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_show"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_show" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Show the recipes, in TOML format</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes show <recipe,...>        Display the recipe in TOML format.</p>
 | |
| <p>Multiple recipes will be separated by</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_tag">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_tag</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_tag"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_tag" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Tag the most recent recipe commit as a release</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes tag <recipe>             Tag the most recent recipe commit as a release.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_undo">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_undo</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_undo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_undo" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Undo changes to a recipe</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes undo <recipe> <commit>   Undo changes to a recipe by reverting to the selected commit.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.recipes.recipes_workspace">
 | |
| <tt class="descclassname">composer.cli.recipes.</tt><tt class="descname">recipes_workspace</tt><big>(</big><em>socket_path</em>, <em>api_version</em>, <em>args</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/recipes.html#recipes_workspace"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.recipes.recipes_workspace" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Push the recipe TOML to the temporary workspace storage</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
 | |
| <li><strong>socket_path</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Path to the Unix socket to use for API communication</li>
 | |
| <li><strong>api_version</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – Version of the API to talk to. eg. “0”</li>
 | |
| <li><strong>args</strong> (<em>list of str</em>) – List of remaining arguments from the cmdline</li>
 | |
| <li><strong>show_json</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#bool" title="(in Python v2.7)"><em>bool</em></a>) – Set to True to show the JSON output instead of the human readable output</li>
 | |
| </ul>
 | |
| </td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>recipes workspace <recipe>       Push the recipe TOML to the temporary workspace storage.</p>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| <div class="section" id="module-composer.cli.utilities">
 | |
| <span id="utilities-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">utilities</span></tt> Module<a class="headerlink" href="#module-composer.cli.utilities" title="Permalink to this headline">¶</a></h2>
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.utilities.argify">
 | |
| <tt class="descclassname">composer.cli.utilities.</tt><tt class="descname">argify</tt><big>(</big><em>args</em><big>)</big><a class="reference internal" href="_modules/composer/cli/utilities.html#argify"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.utilities.argify" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Take a list of human args and return a list with each item</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>args</strong> (<em>list of str</em>) – list of strings with possible commas and spaces</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">List of all the items</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of str</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| <p>Examples:</p>
 | |
| <p>[“one,two”, “three”, ”,four”, ”,five,”] returns [“one”, “two”, “three”, “four”, “five”]</p>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.utilities.frozen_toml_filename">
 | |
| <tt class="descclassname">composer.cli.utilities.</tt><tt class="descname">frozen_toml_filename</tt><big>(</big><em>recipe_name</em><big>)</big><a class="reference internal" href="_modules/composer/cli/utilities.html#frozen_toml_filename"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.utilities.frozen_toml_filename" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Convert a recipe name into a filename.toml</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>recipe_name</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – The recipe’s name</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The recipe name with ‘ ‘ converted to - and .toml appended</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.utilities.handle_api_result">
 | |
| <tt class="descclassname">composer.cli.utilities.</tt><tt class="descname">handle_api_result</tt><big>(</big><em>result</em>, <em>show_json=False</em><big>)</big><a class="reference internal" href="_modules/composer/cli/utilities.html#handle_api_result"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.utilities.handle_api_result" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Log any errors, return the correct value</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>result</strong> (<a class="reference external" href="https://docs.python.org/2/library/stdtypes.html#dict" title="(in Python v2.7)"><em>dict</em></a>) – JSON result from the http query</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.utilities.packageNEVRA">
 | |
| <tt class="descclassname">composer.cli.utilities.</tt><tt class="descname">packageNEVRA</tt><big>(</big><em>pkg</em><big>)</big><a class="reference internal" href="_modules/composer/cli/utilities.html#packageNEVRA"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.utilities.packageNEVRA" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Return the package info as a NEVRA</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>pkg</strong> (<a class="reference external" href="https://docs.python.org/2/library/stdtypes.html#dict" title="(in Python v2.7)"><em>dict</em></a>) – The package details</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">name-[epoch:]version-release-arch</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| <dl class="function">
 | |
| <dt id="composer.cli.utilities.toml_filename">
 | |
| <tt class="descclassname">composer.cli.utilities.</tt><tt class="descname">toml_filename</tt><big>(</big><em>recipe_name</em><big>)</big><a class="reference internal" href="_modules/composer/cli/utilities.html#toml_filename"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#composer.cli.utilities.toml_filename" title="Permalink to this definition">¶</a></dt>
 | |
| <dd><p>Convert a recipe name into a filename.toml</p>
 | |
| <table class="docutils field-list" frame="void" rules="none">
 | |
| <col class="field-name" />
 | |
| <col class="field-body" />
 | |
| <tbody valign="top">
 | |
| <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>recipe_name</strong> (<a class="reference external" href="https://docs.python.org/2/library/functions.html#str" title="(in Python v2.7)"><em>str</em></a>) – The recipe’s name</td>
 | |
| </tr>
 | |
| <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The recipe name with ‘ ‘ converted to - and .toml appended</td>
 | |
| </tr>
 | |
| <tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
 | |
| </tr>
 | |
| </tbody>
 | |
| </table>
 | |
| </dd></dl>
 | |
| 
 | |
| </div>
 | |
| </div>
 | |
| 
 | |
| 
 | |
|           </div>
 | |
|         </div>
 | |
|       </div>
 | |
|       <div class="sphinxsidebar">
 | |
|         <div class="sphinxsidebarwrapper">
 | |
|   <h3><a href="index.html">Table Of Contents</a></h3>
 | |
|   <ul>
 | |
| <li><a class="reference internal" href="#">cli Package</a><ul>
 | |
| <li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">cli</span></tt> Package</a></li>
 | |
| <li><a class="reference internal" href="#module-composer.cli.compose"><tt class="docutils literal"><span class="pre">compose</span></tt> Module</a></li>
 | |
| <li><a class="reference internal" href="#module-composer.cli.modules"><tt class="docutils literal"><span class="pre">modules</span></tt> Module</a></li>
 | |
| <li><a class="reference internal" href="#module-composer.cli.projects"><tt class="docutils literal"><span class="pre">projects</span></tt> Module</a></li>
 | |
| <li><a class="reference internal" href="#module-composer.cli.recipes"><tt class="docutils literal"><span class="pre">recipes</span></tt> Module</a></li>
 | |
| <li><a class="reference internal" href="#module-composer.cli.utilities"><tt class="docutils literal"><span class="pre">utilities</span></tt> Module</a></li>
 | |
| </ul>
 | |
| </li>
 | |
| </ul>
 | |
| 
 | |
|   <h4>Previous topic</h4>
 | |
|   <p class="topless"><a href="composer.html"
 | |
|                         title="previous chapter">composer Package</a></p>
 | |
|   <h4>Next topic</h4>
 | |
|   <p class="topless"><a href="pylorax.html"
 | |
|                         title="next chapter">pylorax Package</a></p>
 | |
|   <h3>This Page</h3>
 | |
|   <ul class="this-page-menu">
 | |
|     <li><a href="_sources/composer.cli.txt"
 | |
|            rel="nofollow">Show Source</a></li>
 | |
|   </ul>
 | |
| <div id="searchbox" style="display: none">
 | |
|   <h3>Quick search</h3>
 | |
|     <form class="search" action="search.html" method="get">
 | |
|       <input type="text" name="q" />
 | |
|       <input type="submit" value="Go" />
 | |
|       <input type="hidden" name="check_keywords" value="yes" />
 | |
|       <input type="hidden" name="area" value="default" />
 | |
|     </form>
 | |
|     <p class="searchtip" style="font-size: 90%">
 | |
|     Enter search terms or a module, class or function name.
 | |
|     </p>
 | |
| </div>
 | |
| <script type="text/javascript">$('#searchbox').show(0);</script>
 | |
|         </div>
 | |
|       </div>
 | |
|       <div class="clearer"></div>
 | |
|     </div>
 | |
|     <div class="related">
 | |
|       <h3>Navigation</h3>
 | |
|       <ul>
 | |
|         <li class="right" style="margin-right: 10px">
 | |
|           <a href="genindex.html" title="General Index"
 | |
|              >index</a></li>
 | |
|         <li class="right" >
 | |
|           <a href="py-modindex.html" title="Python Module Index"
 | |
|              >modules</a> |</li>
 | |
|         <li class="right" >
 | |
|           <a href="pylorax.html" title="pylorax Package"
 | |
|              >next</a> |</li>
 | |
|         <li class="right" >
 | |
|           <a href="composer.html" title="composer Package"
 | |
|              >previous</a> |</li>
 | |
|         <li><a href="index.html">Lorax 19.7.11 documentation</a> »</li>
 | |
|           <li><a href="modules.html" >src</a> »</li>
 | |
|           <li><a href="composer.html" >composer Package</a> »</li> 
 | |
|       </ul>
 | |
|     </div>
 | |
|     <div class="footer">
 | |
|         © Copyright 2018, Red Hat, Inc..
 | |
|       Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
 | |
|     </div>
 | |
|   </body>
 | |
| </html> |