Lines:
1 to 88 of 88
<?php // (C) Copyright Bobbing Wide 2015-2019 if ( !defined( "OIK_CLI_INCLUDED" ) ) { define( "OIK_CLI_INCLUDED", "1.0.0" ); /** * Command Line Interface (CLI) functions * * Library: oik-cli * Provides: oik-cli * Depends: * * This is planned to be a shared library file * containing some of the common functions used in oik-zip, oik-tip and other routines * including those that deal with directory changes in symlinked environments * and others that return responses to the calling routines and make decisions based on them. * */ if ( !function_exists( "oik_batch_load_lib" ) ) { /* function oik_batch_load_lib() – Load a library file */ } /* function oik_batch_load_oik_boot() – Load the oik_boot.php shared library file */ /* function oik_batch_locate_wp_config_for_phpunit() – Locate the expected wp-config.php when running under PHPUnit */ /* function oik_batch_locate_wp_config() – Locate the wp-config.php they expected to use */ /* function oik_normalize_path() – Normalize a path to UNIX style */ /* function oik_batch_cd_drill_down() – Drill down to locate the lowest file */ /* function oik_batch_set_domain() – WordPress MultiSite needs to know which domain we’re working on */ /* function oik_batch_set_path() – Set the path for WPMS */ /* function oik_batch_query_value_from_argv() – Obtain a value for a command line parameter */ /* function oik_batch_query_positional_value_from_argv() – Query a positional parameter */ /* function oik_batch_query_nvp_value_from_argv() – Query a named parameter’s value */ /* function oik_batch_report_wordpress_version() – Report the version of WordPress */ if ( !function_exists( 'docontinue' ) ) { /* function docontinue() – Prompt to check if the process should be continued */ } if ( !function_exists( "oik_batch_run_me" ) ) { /* function oik_batch_run_me() – */ } /* function oik_batch_load_wordpress_files() – Batch WordPress without database */ /* function oik_batch_simulate_wp_settings() – Simulate those parts of wp-settings.php that are required */ /* function oik_batch_define_oik_batch_dir() – Set the OIK_BATCH_DIR constant */ /* function oik_batch_define_constants() – Define the mandatory constants that allow WordPress to work */ /* function oik_batch_debug() – Turn on debugging for oik-batch */ /* function oik_batch_trace() – Enable trace and action trace for oik-batch routines */ /* function oik_batch_admin_menu() – Implement "oik_admin_menu" action for oik-batch */ /* function oik_batch_do_page */ /* function oik_batch_activation() – Implement "admin_notices" hook for oik-wp and oik-batch to check plugin dependency */ /* function oik_batch_run() – Run the script specified having pre-loaded wp-batch code */ /* function oik_batch_merge_argv() – Merges argv and argv-saved back into a single array */ /* function oik_batch_run_script() – Run a script in batch */ /* function oik_batch_oik_menu_box */ } /* end if !defined */View on GitHub