Functions

Contains filters are case sensitive
Namesort descending Location Description
drush_sandwich_make_me_a_sandwich examples/sandwich.drush.inc Example drush command callback. This is where the action takes place.
drush_sandwich_make_me_a_sandwich_validate examples/sandwich.drush.inc Implementation of drush_hook_COMMAND_validate().
drush_save_config includes/context.inc Save the settings in a specific context to the applicable configuration file This is useful is you want certain settings to be available automatically the next time a command is executed.
drush_save_data_to_temp_file includes/filesystem.inc Save a string to a temporary file. Does not depend on Drupal's API. The temporary file will be automatically deleted when drush exits.
drush_scan_directory includes/filesystem.inc Finds all files that match a given mask in a given directory. Directories and files beginning with a period are excluded; this prevents hidden files and directories (such as SVN working directories and GIT repositories) from being scanned.
drush_search_index commands/core/search.drush.inc
drush_search_reindex commands/core/search.drush.inc
drush_search_status commands/core/search.drush.inc
drush_server_home includes/environment.inc Return the user's home directory.
drush_set_arguments includes/context.inc Set the arguments passed to the drush.php script.
drush_set_command includes/context.inc Set the command being executed.
drush_set_config_options includes/context.inc
drush_set_config_special_contexts includes/context.inc There are certain options such as 'site-aliases' and 'command-specific' that must be merged together if defined in multiple drush configuration files. If we did not do this merge, then the last configuration file that defined any…
drush_set_context includes/context.inc Set a specific context.
drush_set_default includes/context.inc A small helper function to set the value in the default context
drush_set_error includes/drush.inc Set an error code for the error handling system.
drush_set_option includes/context.inc Set an option in one of the option contexts.
drush_shell_alias_replace includes/command.inc
drush_shell_cd_and_exec includes/exec.inc Executes a shell command at a new working directory. The old cwd is restored on exit.
drush_shell_exec includes/exec.inc Executes a shell command. Output is only printed if in verbose mode. Output is stored and can be retrieved using drush_shell_exec_output(). If in simulation mode, no action is taken.
drush_shell_exec_interactive includes/exec.inc Executes a command in interactive mode.
drush_shell_exec_output includes/exec.inc Returns the output of the most recent shell command as an array of lines.
drush_shell_exec_proc_build_options includes/exec.inc Used by definition of ssh and other commands that call into drush_shell_proc_build() to declare their options.
drush_shell_proc_build includes/exec.inc Build an SSH string including an optional fragment of bash. Commands that use this should also merge drush_shell_proc_build_options() into their command options.
drush_shell_proc_open includes/exec.inc
drush_shift includes/command.inc Pop an argument off of drush's argument list
drush_show_help commands/core/help.drush.inc Prints out help for a given command.
drush_shutdown includes/bootstrap.inc Shutdown function for use while Drupal is bootstrapping and to return any registered errors.
drush_sitealias_add_db_settings includes/sitealias.inc If the alias record does not contain a 'databases' or 'db-url' entry, then use backend invoke to look up the settings value from the remote or local site. The 'databases' form is preferred; 'db_url' will be…
drush_sitealias_add_db_url includes/sitealias.inc If the alias record does not contain a 'databases' or 'db-url' entry, then use backend invoke to look up the settings value from the remote or local site. The 'db_url' form is preferred; nothing is done if…
drush_sitealias_add_to_alias_path includes/sitealias.inc Add a path to the array of paths where alias files are searched for.
drush_sitealias_alias_path includes/sitealias.inc Return the array of paths where alias files are searched for.
drush_sitealias_alias_record_to_spec includes/sitealias.inc Convert from an alias record to a site specification
drush_sitealias_bootstrapped_site_name includes/sitealias.inc Get the name of the current bootstrapped site
drush_sitealias_build_record_from_settings_file includes/sitealias.inc
drush_sitealias_cache_db_settings includes/sitealias.inc
drush_sitealias_check_arg includes/sitealias.inc Check to see if the first command-line arg or the -l option is a site alias; if it is, copy its record values to the 'alias' context.
drush_sitealias_check_lists_alignment includes/sitealias.inc Check to see if the uri is the same in the source and target lists for all items in the array. This is a strong requirement in D6; in D7, it is still highly convenient for the uri to be the same, because the site folder name == the uri, and if the…
drush_sitealias_check_site_env includes/sitealias.inc
drush_sitealias_command_default_options includes/command.inc
drush_sitealias_convert_db_from_db_url includes/sitealias.inc Convert from an old-style database URL to an array of database settings
drush_sitealias_create_sites_alias includes/sitealias.inc
drush_sitealias_evaluate_path includes/sitealias.inc Evaluate a path from its shorthand form to a literal path usable by rsync.
drush_sitealias_evaluate_paths_in_options includes/sitealias.inc Given a properly-escaped options string, replace any occurance of %files and so on embedded inside it with its corresponding path.
drush_sitealias_get_db_spec includes/sitealias.inc Return the $db_spec record for the database associated with the provided alias record. which will be used to first add the database information to the alias records, invoking sql-conf to look them up if necessary.
drush_sitealias_get_envar_filename includes/sitealias.inc Returns the filename for the file that stores the DRUPAL_SITE variable.
drush_sitealias_get_option includes/context.inc Get an option out of the specified alias. If it has not been set in the alias, then get it via drush_get_option.
drush_sitealias_get_path_option includes/sitealias.inc First return an option set via drush_sitealias_overlay_options, if any, then fall back on "%" . $option from the path aliases.
drush_sitealias_get_record includes/sitealias.inc Get a site alias record given an alias name or site specification.
drush_sitealias_is_bootstrapped_site includes/sitealias.inc Check to see if we have already bootstrapped to a site.

Pages