mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
help for shell command
This commit is contained in:
parent
e7e3dbccbf
commit
d34f1e59c0
2 changed files with 16 additions and 1 deletions
|
@ -312,7 +312,6 @@ PHPDBG_HELP(oplog) /* {{{ */
|
||||||
phpdbg_writeln("Example:");
|
phpdbg_writeln("Example:");
|
||||||
phpdbg_writeln("\t%soplog /path/to/my.oplog", PROMPT);
|
phpdbg_writeln("\t%soplog /path/to/my.oplog", PROMPT);
|
||||||
phpdbg_writeln("Will open the file /path/to/my.oplog for writing, creating it if it does not exist");
|
phpdbg_writeln("Will open the file /path/to/my.oplog for writing, creating it if it does not exist");
|
||||||
phpdbg_writeln("Example:");
|
|
||||||
phpdbg_writeln("\t%soplog 0", PROMPT);
|
phpdbg_writeln("\t%soplog 0", PROMPT);
|
||||||
phpdbg_writeln("Will close the currently open log file, disabling oplog");
|
phpdbg_writeln("Will close the currently open log file, disabling oplog");
|
||||||
phpdbg_writeln(EMPTY);
|
phpdbg_writeln(EMPTY);
|
||||||
|
@ -320,3 +319,17 @@ PHPDBG_HELP(oplog) /* {{{ */
|
||||||
phpdbg_help_footer();
|
phpdbg_help_footer();
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
PHPDBG_HELP(shell) /* {{{ */
|
||||||
|
{
|
||||||
|
phpdbg_help_header();
|
||||||
|
phpdbg_writeln("Direct access to shell commands saves having to switch windows/consoles");
|
||||||
|
phpdbg_writeln(EMPTY);
|
||||||
|
phpdbg_writeln("Example:");
|
||||||
|
phpdbg_writeln("\t%s- ls /usr/src/php-src", PROMPT);
|
||||||
|
phpdbg_writeln("Will execute ls /usr/src/php-src, displaying the output in the console");
|
||||||
|
phpdbg_writeln(EMPTY);
|
||||||
|
phpdbg_writeln("Note: read only commands please !");
|
||||||
|
phpdbg_help_footer();
|
||||||
|
return SUCCESS;
|
||||||
|
} /* }}} */
|
||||||
|
|
|
@ -47,6 +47,7 @@ PHPDBG_HELP(back);
|
||||||
PHPDBG_HELP(quiet);
|
PHPDBG_HELP(quiet);
|
||||||
PHPDBG_HELP(list);
|
PHPDBG_HELP(list);
|
||||||
PHPDBG_HELP(oplog);
|
PHPDBG_HELP(oplog);
|
||||||
|
PHPDBG_HELP(shell);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Commands
|
* Commands
|
||||||
|
@ -70,6 +71,7 @@ static const phpdbg_command_t phpdbg_help_commands[] = {
|
||||||
PHPDBG_COMMAND_D_EX(quiet, "be quiet during execution", 's', help_quiet, NULL, 0),
|
PHPDBG_COMMAND_D_EX(quiet, "be quiet during execution", 's', help_quiet, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(list, "listing code gives you quick access to code while executing", 'l', help_list, NULL, 0),
|
PHPDBG_COMMAND_D_EX(list, "listing code gives you quick access to code while executing", 'l', help_list, NULL, 0),
|
||||||
PHPDBG_COMMAND_D_EX(oplog, "keep clutter off the screen by sending oplogs to a file", 'O', help_oplog, NULL, 0),
|
PHPDBG_COMMAND_D_EX(oplog, "keep clutter off the screen by sending oplogs to a file", 'O', help_oplog, NULL, 0),
|
||||||
|
PHPDBG_COMMAND_D_EX(shell, "execute system commands with direct shell access", '-', help_shell, NULL, 0),
|
||||||
PHPDBG_END_COMMAND
|
PHPDBG_END_COMMAND
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue