Drush: commands/core/init.drush.inc File Reference

init.drush.inc File Reference

Go to the source code of this file.

Functions

 init_drush_command ()
 drush_init_core_init ()
 drush_init_find_bashrc ($home)
 drush_find_path_to_drush ($home)
 drush_bash_addition ($file)

Detailed Description

Set up local Drush configuration.

Definition in file init.drush.inc.

Function Documentation

drush_find_path_to_drush (   $home)

Determine where Drush is located, so that we can add that location to the $PATH

Definition at line 147 of file init.drush.inc.

Referenced by drush_init_core_init().

Here is the caller graph for this function:

drush_init_core_init ( )

Initialize local Drush configuration

Definition at line 38 of file init.drush.inc.

References drush_confirm(), drush_find_path_to_drush(), drush_get_editor(), drush_get_option(), drush_init_find_bashrc(), drush_log(), drush_mkdir(), drush_server_home(), drush_shell_exec_interactive(), drush_user_abort(), drush_which(), and dt().

Here is the call graph for this function:

drush_init_find_bashrc (   $home)

Determine which .bashrc file is best to use on this platform.

Definition at line 139 of file init.drush.inc.

Referenced by drush_init_core_init().

Here is the caller graph for this function:

init_drush_command ( )

Implementation of hook_drush_command().

Returns
An associative array describing your command(s).

Definition at line 16 of file init.drush.inc.

File

doxygen/html/init_8drush_8inc.html
View source
<!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/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: commands/core/init.drush.inc File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_afac61274991793aa7e9133a8f4f291e.html">commands</a></li><li class="navelem"><a class="el" href="dir_5762b63965e3a68a35f77c23b4dd4668.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">init.drush.inc File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a href="init_8drush_8inc_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a52408be0e02c1e6e752913a9eb04bdc6"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8drush_8inc.html#a52408be0e02c1e6e752913a9eb04bdc6">init_drush_command</a> ()</td></tr>
<tr class="memitem:ab594d5d03b6d63ea88be1a5d289fa36e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8drush_8inc.html#ab594d5d03b6d63ea88be1a5d289fa36e">drush_init_core_init</a> ()</td></tr>
<tr class="memitem:aad5db6704f9426f0cb8fcc26cd455ddc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8drush_8inc.html#aad5db6704f9426f0cb8fcc26cd455ddc">drush_init_find_bashrc</a> ($home)</td></tr>
<tr class="memitem:a857121a2991694158ab1728af9986567"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="init_8drush_8inc.html#a857121a2991694158ab1728af9986567">drush_find_path_to_drush</a> ($home)</td></tr>
<tr class="memitem:aeff896bb2af10b9dd7ae5bbce0faf0d2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeff896bb2af10b9dd7ae5bbce0faf0d2"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>drush_bash_addition</b> ($file)</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Set up local <a class="el" href="classDrush.html">Drush</a> configuration. </p>

<p>Definition in file <a class="el" href="init_8drush_8inc_source.html">init.drush.inc</a>.</p>
</div><h2>Function Documentation</h2>
<a class="anchor" id="a857121a2991694158ab1728af9986567"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_find_path_to_drush </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$home</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine where <a class="el" href="classDrush.html">Drush</a> is located, so that we can add that location to the $PATH </p>

<p>Definition at line <a class="el" href="init_8drush_8inc_source.html#l00147">147</a> of file <a class="el" href="init_8drush_8inc_source.html">init.drush.inc</a>.</p>

<p>Referenced by <a class="el" href="init_8drush_8inc_source.html#l00038">drush_init_core_init()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="init_8drush_8inc_a857121a2991694158ab1728af9986567_icgraph.png" border="0" usemap="#init_8drush_8inc_a857121a2991694158ab1728af9986567_icgraph" alt=""/></div>
<map name="init_8drush_8inc_a857121a2991694158ab1728af9986567_icgraph" id="init_8drush_8inc_a857121a2991694158ab1728af9986567_icgraph">
<area shape="rect" id="node3" href="init_8drush_8inc.html#ab594d5d03b6d63ea88be1a5d289fa36e" title="drush_init_core_init" alt="" coords="188,13,321,43"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="ab594d5d03b6d63ea88be1a5d289fa36e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_init_core_init </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Initialize local <a class="el" href="classDrush.html">Drush</a> configuration </p>

<p>Definition at line <a class="el" href="init_8drush_8inc_source.html#l00038">38</a> of file <a class="el" href="init_8drush_8inc_source.html">init.drush.inc</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l00395">drush_confirm()</a>, <a class="el" href="init_8drush_8inc_source.html#l00147">drush_find_path_to_drush()</a>, <a class="el" href="exec_8inc_source.html#l00092">drush_get_editor()</a>, <a class="el" href="context_8inc_source.html#l00405">drush_get_option()</a>, <a class="el" href="init_8drush_8inc_source.html#l00139">drush_init_find_bashrc()</a>, <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, <a class="el" href="filesystem_8inc_source.html#l00359">drush_mkdir()</a>, <a class="el" href="includes_2environment_8inc_source.html#l00640">drush_server_home()</a>, <a class="el" href="exec_8inc_source.html#l00104">drush_shell_exec_interactive()</a>, <a class="el" href="drush_8inc_source.html#l01579">drush_user_abort()</a>, <a class="el" href="exec_8inc_source.html#l00174">drush_which()</a>, and <a class="el" href="output_8inc_source.html#l00147">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="init_8drush_8inc_ab594d5d03b6d63ea88be1a5d289fa36e_cgraph.png" border="0" usemap="#init_8drush_8inc_ab594d5d03b6d63ea88be1a5d289fa36e_cgraph" alt=""/></div>
<map name="init_8drush_8inc_ab594d5d03b6d63ea88be1a5d289fa36e_cgraph" id="init_8drush_8inc_ab594d5d03b6d63ea88be1a5d289fa36e_cgraph">
<area shape="rect" id="node3" href="group__userinput.html#gaa4169b83ff9dc4222af95d376b21268b" title="drush_confirm" alt="" coords="443,209,547,239"/><area shape="rect" id="node9" href="context_8inc.html#afe91fb3e5219ecb2208c3b036b1f0cb8" title="drush_get_option" alt="" coords="1081,89,1201,119"/><area shape="rect" id="node19" href="init_8drush_8inc.html#a857121a2991694158ab1728af9986567" title="drush_find_path_to\l_drush" alt="" coords="220,785,351,831"/><area shape="rect" id="node21" href="group__commandwrappers.html#ga516aab026be224e57d9fc0fe9c3de79f" title="drush_get_editor" alt="" coords="436,117,553,147"/><area shape="rect" id="node25" href="init_8drush_8inc.html#aad5db6704f9426f0cb8fcc26cd455ddc" title="drush_init_find_bashrc" alt="" coords="209,855,361,884"/><area shape="rect" id="node27" href="group__logging.html#ga2a8afad8eafb1382e24a5601bc962e71" title="drush_log" alt="" coords="669,841,747,871"/><area shape="rect" id="node41" href="group__filesystemfunctions.html#ga6027285d97028ad3299d3aa262be8c2f" title="drush_mkdir" alt="" coords="239,681,332,711"/><area shape="rect" id="node50" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="476,625,513,655"/><area shape="rect" id="node62" href="includes_2environment_8inc.html#afae6d4a5a12623e5502ca262346c799b" title="drush_server_home" alt="" coords="217,908,353,937"/><area shape="rect" id="node64" href="group__commandwrappers.html#gad0b72e62d81d339d68dc2d3d36db75d6" title="drush_shell_exec_interactive" alt="" coords="191,455,380,484"/><area shape="rect" id="node84" href="group__errorhandling.html#ga366aaafdf8c774a58653c64a65b6d91c" title="drush_user_abort" alt="" coords="224,628,347,657"/><area shape="rect" id="node91" href="group__commandwrappers.html#ga3baeb8291ac5fa5e67fd5cc1b1ee1f5e" title="drush_which" alt="" coords="239,961,332,991"/><area shape="rect" id="node5" href="group__outputfunctions.html#ga6dc4aa94bd0a854c564a2538e166c749" title="drush_print_prompt" alt="" coords="641,93,775,123"/><area shape="rect" id="node7" href="group__outputfunctions.html#ga63acbb94925d6d2693e235e966bba740" title="drush_print" alt="" coords="891,137,976,167"/><area shape="rect" id="node13" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="1284,535,1412,564"/><area shape="rect" id="node11" href="context_8inc.html#aee5781894bf828bfa508d9052553f809" title="_drush_get_option" alt="" coords="1284,63,1412,92"/><area shape="rect" id="node15" href="context_8inc.html#a9f6272c1a68141ce873c07aae3a316ac" title="drush_context_names" alt="" coords="1273,116,1423,145"/><area shape="rect" id="node29" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="891,841,976,871"/><area shape="rect" id="node32" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="1093,893,1189,923"/><area shape="rect" id="node38" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="1064,789,1219,819"/><area shape="rect" id="node34" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="1297,815,1399,844"/><area shape="rect" id="node36" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1473,815,1607,844"/><area shape="rect" id="node43" href="group__errorhandling.html#ga23fe9e1e8c1e5ade39256106044b6da4" title="drush_set_error" alt="" coords="439,684,551,713"/><area shape="rect" id="node46" href="command_8inc.html#a19eba9666aba673a64fbd78a2c5ef4f9" title="drush_command_invoke_all" alt="" coords="617,737,799,767"/><area shape="rect" id="node52" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="641,617,775,663"/><area shape="rect" id="node60" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="639,564,777,593"/><area shape="rect" id="node54" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="861,685,1005,715"/><area shape="rect" id="node57" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="1059,736,1224,765"/><area shape="rect" id="node66" href="group__commandwrappers.html#ga0eed47c4d6d19d386936ad57f34b10b2" title="_drush_shell_exec" alt="" coords="429,383,560,412"/><area shape="rect" id="node68" href="group__commandwrappers.html#ga86287cc25942ca7d737ffa042a59be4b" title="drush_escapeshellarg" alt="" coords="635,356,781,385"/><area shape="rect" id="node78" href="group__commandwrappers.html#ga3a1bb3ae751f14749ce1dbe4ec9c3288" title="drush_shell_proc_open" alt="" coords="631,299,785,328"/><area shape="rect" id="node82" href="group__commandwrappers.html#gac21dc9409bff5197d255978c3cf6e761" title="_drush_shell_exec_output_set" alt="" coords="609,409,807,439"/><area shape="rect" id="node70" href="includes_2environment_8inc.html#a88114295372bcb0ca8dbb5f10b36368e" title="drush_is_windows" alt="" coords="869,361,997,391"/><area shape="rect" id="node72" href="group__commandwrappers.html#ga84f53b6f5c6e7c43a6d1d4f00e476c40" title="_drush_escapeshellarg\l_windows" alt="" coords="856,414,1011,461"/><area shape="rect" id="node74" href="startup_8inc.html#a27c2d093d8723211cf13681c0535f187" title="_drush_escapeshellarg\l_linux" alt="" coords="856,291,1011,338"/><area shape="rect" id="node86" href="context_8inc.html#af983acfe90e7d7bbdbd67c57f93708ba" title="drush_set_context" alt="" coords="1077,535,1205,564"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="aad5db6704f9426f0cb8fcc26cd455ddc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">drush_init_find_bashrc </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$home</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Determine which .bashrc file is best to use on this platform. </p>

<p>Definition at line <a class="el" href="init_8drush_8inc_source.html#l00139">139</a> of file <a class="el" href="init_8drush_8inc_source.html">init.drush.inc</a>.</p>

<p>Referenced by <a class="el" href="init_8drush_8inc_source.html#l00038">drush_init_core_init()</a>.</p>

<p><div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="init_8drush_8inc_aad5db6704f9426f0cb8fcc26cd455ddc_icgraph.png" border="0" usemap="#init_8drush_8inc_aad5db6704f9426f0cb8fcc26cd455ddc_icgraph" alt=""/></div>
<map name="init_8drush_8inc_aad5db6704f9426f0cb8fcc26cd455ddc_icgraph" id="init_8drush_8inc_aad5db6704f9426f0cb8fcc26cd455ddc_icgraph">
<area shape="rect" id="node3" href="init_8drush_8inc.html#ab594d5d03b6d63ea88be1a5d289fa36e" title="drush_init_core_init" alt="" coords="207,5,340,35"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a52408be0e02c1e6e752913a9eb04bdc6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">init_drush_command </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Implementation of <a class="el" href="drush_8api_8php.html#ad8372d595205e79e81d7700f4f59b31c">hook_drush_command()</a>.</p>
<dl class="section return"><dt>Returns</dt><dd>An associative array describing your command(s). </dd></dl>

<p>Definition at line <a class="el" href="init_8drush_8inc_source.html#l00016">16</a> of file <a class="el" href="init_8drush_8inc_source.html">init.drush.inc</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat May 7 2016 07:27:29 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>