Revisions for framework/CLI/CLI.php

Location: [ Horde ] / framework / CLI / CLI.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.42.6.24 FRAMEWORK_3 (+2 -2 lines) 07/16/2008 01:40 PM Jan Schneider jan

MFH: 1.74

Tags: HORDE_3_3, HORDE_3_3_RC1

1.74 (+2 -2 lines) 07/16/2008 12:58 PM Jan Schneider jan

Non-zero exit value on fatal errors.

1.42.6.23 FRAMEWORK_3 (+3 -2 lines) 06/06/2008 06:51 AM Jan Schneider jan

MFH: 1.73

Tags: HORDE_3_2_2, HORDE_3_2_1

1.73 (+3 -2 lines) 06/06/2008 06:35 AM Jan Schneider jan

Fix indention of already wrapped messages.

1.42.6.22 FRAMEWORK_3 (+3 -3 lines) 05/11/2008 01:49 PM Jan Schneider jan

MFH: 1.72

Tags: HORDE_3_2

1.72 (+3 -3 lines) 05/11/2008 01:47 PM Jan Schneider jan

At least some terminals don't set the cursor to the home position when
clearing the screen.

1.42.6.21 FRAMEWORK_3 (+20 -1 lines) 05/11/2008 01:28 PM Jan Schneider jan

MFH: 1.71

1.71 (+20 -1 lines) 05/11/2008 01:26 PM Jan Schneider jan

Add clearScreen().

1.42.6.20 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_RC4, HORDE_3_2_RC3, HORDE_3_2_RC2

1.70 (+2 -2 lines) 01/02/2008 06:11 AM Jan Schneider jan

Happy New Year

1.42.6.19 FRAMEWORK_3 (+46 -7 lines) 12/20/2007 08:48 AM Jan Schneider jan

Merge from HEAD.

1.69 (+2 -2 lines) 11/28/2007 09:07 AM Jan Schneider jan

Highlight error message.

Tags: BEFORE_MERGE_3_2

1.68 (+42 -1 lines) 04/16/2007 02:32 PM Chuck Hagenbuch chuck

Add a bunch of new color codes. These aren't used yet and the
foreground/backgrounds could perhaps be combined in some cases, but it
might be of interest to someone who'll get to it before I will.

Tags: HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.67 (+3 -4 lines) 01/24/2007 12:47 PM Chuck Hagenbuch chuck

Use PHP_VERSION and PHP_SAPI_NAME instead of function calls
Use strncasecmp() instead of substr() for checking beginning substring.

1.42.6.18 FRAMEWORK_3 (+3 -3 lines) 01/14/2007 10:20 AM Jan Schneider jan

MFH: 1.66

Tags: HORDE_3_1_9, HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.66 (+3 -3 lines) 01/14/2007 10:10 AM Jan Schneider jan

These ob_flush() calls have to be silenced because they raise a notice if
there is nothing to flush.

1.42.6.17 FRAMEWORK_3 (+2 -2 lines) 01/13/2007 05:14 PM Jan Schneider jan

Fix indention.

1.42.6.16 FRAMEWORK_3 (+11 -2 lines) 01/13/2007 01:19 PM Jan Schneider jan

MFH 1.64, 1.65

1.65 (+9 -1 lines) 01/13/2007 01:12 PM Jan Schneider jan

Some instructions on how to use Horde_CLI.

1.64 (+3 -2 lines) 01/13/2007 12:56 PM Jan Schneider jan

FastCGI is suitable for CLI stuff too.

1.42.6.15 FRAMEWORK_3 (+3 -3 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

1.63 (+2 -2 lines) 01/02/2007 07:46 AM Jan Schneider jan

Happy New Year

1.62 (+2 -3 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.42.6.14 FRAMEWORK_3 (+4 -3 lines) 11/28/2006 06:50 PM Michael Rubinsky mrubinsk

MFH: 1.61
Bug: 3676

1.61 (+3 -2 lines) 11/28/2006 06:23 PM Michael Rubinsky mrubinsk

Make sure we flush the output buffer.  Also, don't silence these calls.

1.42.6.13 FRAMEWORK_3 (+3 -1 lines) 05/31/2006 08:31 AM Jan Schneider jan

MFH: 1.60

Tags: HORDE_3_1_3, HORDE_3_1_2

1.60 (+3 -1 lines) 05/31/2006 05:58 AM Jan Schneider jan

Wrap messages.

1.42.6.12 FRAMEWORK_3 (+17 -3 lines) 05/19/2006 12:49 PM Jan Schneider jan

MFH: 1.59

1.59 (+17 -3 lines) 05/19/2006 12:35 PM Jan Schneider jan

Add 'default' parameter to Horde_CLI::prompt().

1.42.6.11 FRAMEWORK_3 (+7 -3 lines) 04/19/2006 03:10 AM Jan Schneider jan

MFH: 1.58

1.58 (+7 -3 lines) 04/19/2006 03:08 AM Jan Schneider jan

Trick to be able to call init() before the ctor.

Bug: 3791

1.42.6.10 FRAMEWORK_3 (+3 -3 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_1, HORDE_3_1, HORDE_3_1_RC3, HORDE_3_1_RC2, HORDE_3_1_RC1

1.57 (+3 -3 lines) 01/01/2006 04:09 PM Jan Schneider jan

Happy new year\!

1.56 (+1 -3 lines) 10/20/2005 08:51 AM Jan Schneider jan

not

1.55 (+3 -1 lines) 10/20/2005 08:50 AM Jan Schneider jan

Add missing @since tag.

1.42.6.9 FRAMEWORK_3 (+10 -1 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.54 (+4 -4 lines) 09/16/2005 04:16 PM Chuck Hagenbuch chuck

unncessary @'s

Tags: BEFORE_MERGE_3_1

1.53 (+3 -3 lines) 09/16/2005 04:03 PM Ben Chavet ben

use single quotes

1.52 (+9 -5 lines) 09/16/2005 04:00 PM Ben Chavet ben

fix CS, put definitions in init() instead.

1.51 (+5 -0 lines) 09/16/2005 03:53 PM Ben Chavet ben

make sure STDIN, STDOUT, and STDERR are defined.

1.42.6.8 FRAMEWORK_3 (+2 -2 lines) 08/24/2005 10:04 AM Matt Selsky selsky

MFH: Use double-quotes.

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1

1.50 (+2 -2 lines) 08/24/2005 09:23 AM Matt Selsky selsky

Use double-quotes.

1.42.6.7 FRAMEWORK_3 (+11 -6 lines) 06/23/2005 03:59 PM Matt Selsky selsky

MFH: Clean up phpdoc.

Tags: HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.49 (+11 -6 lines) 06/23/2005 03:42 PM Matt Selsky selsky

Clean up phpdoc.

1.42.6.6 FRAMEWORK_3 (+8 -10 lines) 05/09/2005 09:35 PM Matt Selsky selsky

MFH: 1.48

1.48 (+8 -10 lines) 05/09/2005 09:34 PM Matt Selsky selsky

"optional" not needed in phpdoc.

1.42.6.5 FRAMEWORK_3 (+2 -2 lines) 04/26/2005 07:32 PM Matt Selsky selsky

MFH 1.47

1.47 (+2 -2 lines) 04/26/2005 01:32 PM Matt Selsky selsky

phpdoc clean-up

1.42.6.4 FRAMEWORK_3 (+1 -2 lines) 04/21/2005 07:26 AM Matt Selsky selsky

Remove @version.

1.46 (+1 -2 lines) 04/21/2005 01:55 AM Matt Selsky selsky

Remove @version.

1.42.6.3 FRAMEWORK_3 (+4 -4 lines) 04/11/2005 10:58 AM Chuck Hagenbuch chuck

MFH: PHPDoc fixes
Bug: 1748, 1749
Submitted by: selsky@columbia.edu

1.45 (+4 -4 lines) 04/11/2005 10:58 AM Chuck Hagenbuch chuck

PHPDoc fixes
Bug: 1743, 1744, 1748, 1749
Submitted by: selsky@columbia.edu

1.42.6.2 FRAMEWORK_3 (+3 -3 lines) 01/16/2005 06:12 PM Chuck Hagenbuch chuck

MFH 1.44

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1

1.44 (+3 -3 lines) 01/16/2005 06:12 PM Chuck Hagenbuch chuck

no need to yell

1.43 (+2 -2 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.42.6.1 FRAMEWORK_3 (+4 -4 lines) 01/03/2005 07:18 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_2, HORDE_3_0_1

1.42 (+3 -3 lines) 11/23/2004 03:01 PM Chuck Hagenbuch chuck

silence warning

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.41 (+9 -9 lines) 09/25/2004 12:05 AM Chuck Hagenbuch chuck

Hah! Adding an ob_flush() here makes this work for me on php5. Don't
ask how long it took me to figure this out.

1.40 (+3 -3 lines) 09/24/2004 11:43 PM Chuck Hagenbuch chuck

don't assign a reference to a static variable.

1.39 (+3 -3 lines) 09/24/2004 09:33 PM Chuck Hagenbuch chuck

Go back to reading up to a newline.

1.38 (+4 -8 lines) 09/22/2004 01:32 PM Chuck Hagenbuch chuck

Small tweaks.

1.37 (+18 -22 lines) 09/20/2004 09:16 PM Chuck Hagenbuch chuck

simplification possible by relying on PHP 4.3+ I'm trying to figure
out why, with php5 and on MacOSX, I don't get the CLI prompts until
after I enter input. still working on that.

1.36 (+19 -2 lines) 06/10/2004 12:01 PM mdjukic

add function to read all of stdin

1.35 (+4 -2 lines) 04/11/2004 08:46 PM jon

Document CLI::prompt()'s return value.

1.34 (+5 -4 lines) 03/01/2004 05:04 PM Chuck Hagenbuch chuck

Try to be better about detecting the CGI version, but don't let CGI PHP run
through the web either.

Tags: HORDE_3_0_ALPHA

1.33 (+3 -3 lines) 02/04/2004 10:15 AM mdjukic

add a space after a text prompt

1.32 (+3 -2 lines) 01/15/2004 07:46 PM Jan Schneider jan

Set $_SERVER['HTTP_HOST'].

1.31 (+7 -3 lines) 01/03/2004 07:27 PM mdjukic

allow text input

1.30 (+4 -4 lines) 01/01/2004 10:14 AM Jan Schneider jan

Happy new year everyone.

1.29 (+5 -5 lines) 11/24/2003 04:44 PM Chuck Hagenbuch chuck

fix typo

1.28 (+2 -3 lines) 11/16/2003 01:32 PM Chuck Hagenbuch chuck

remove debug var_dump.

1.27 (+9 -8 lines) 11/16/2003 06:06 AM Jan Schneider jan

Fix @access tags.

1.26 (+15 -13 lines) 10/29/2003 09:59 AM Chuck Hagenbuch chuck

add/improve some comments.

1.25 (+3 -3 lines) 09/25/2003 05:57 PM Jan Schneider jan

Fix package names.

1.24 (+14 -2 lines) 09/22/2003 06:06 PM Jan Schneider jan

Add singleton()

1.23 (+4 -5 lines) 07/24/2003 10:02 AM Chuck Hagenbuch chuck

single quotes, make phpdoc match reality

1.22 (+3 -3 lines) 07/22/2003 09:05 AM Marcus I. Ryan marcus

Oops...get the logic right.  Thanks John.

1.21 (+4 -4 lines) 07/17/2003 11:07 AM Marcus I. Ryan marcus

Okay...so SERVER_NAME needs to be set to a non-empty string for mail and
possibly other purposes.  Use REMOTE_ADDR instead.

1.20 (+9 -4 lines) 07/17/2003 10:56 AM Marcus I. Ryan marcus

If we set SERVER_NAME to an empty string like we do all the other settings
we can use it even after init to check for runningFromCLI.  STDIN is still
more reliable, so use it for new enough versions of PHP.

1.19 (+3 -7 lines) 07/16/2003 03:17 PM Chuck Hagenbuch chuck

Simplify - don't need the if or the constant() call.

1.18 (+3 -5 lines) 07/16/2003 02:39 PM Marcus I. Ryan marcus

Given approval to require 4.3.0+ for HEAD, this is a more reliable check
(at least in my tests) and makes the function valid before and after calls
to init();

1.17 (+4 -2 lines) 07/16/2003 10:57 AM Chuck Hagenbuch chuck

phdoc this as *explicitly* static

1.16 (+3 -2 lines) 07/16/2003 10:42 AM Marcus I. Ryan marcus

Add REMOTE_ADDR for the new AUTH check_ip config option.

1.15 (+10 -2 lines) 07/05/2003 05:46 AM Jan Schneider jan

Authors and copyright

1.14 (+3 -1 lines) 07/05/2003 12:53 AM mikec

phpdoc, who's the author of this class?

1.13 (+2 -1 lines) 06/09/2003 01:33 PM Jan Schneider jan

Set ['PHP_SELF'] to [0].

1.12 (+3 -1 lines) 06/01/2003 06:04 AM Jan Schneider jan

More cli setting in init().

1.11 (+2 -2 lines) 04/07/2003 11:42 PM mdjukic

true - otherwise the prompt doesn't wait for an input

1.10 (+36 -13 lines) 04/06/2003 09:34 AM Jan Schneider jan

Add some missing stuff, simplifying a bit.

1.9 (+98 -22 lines) 04/05/2003 05:11 PM mdjukic

slight updates to the CLI functions

1.8 (+6 -4 lines) 03/10/2003 03:31 AM Jan Schneider jan

Be consistent with other CLI methods.
There might be a cli backend that needs to embed the text in tags to
indent it.

1.7 (+23 -7 lines) 03/10/2003 03:21 AM Jan Schneider jan

Add indent() method. Fix phpdoc.

1.6 (+3 -2 lines) 01/31/2003 01:38 PM Chuck Hagenbuch chuck

initialize SERVER_NAME to 127.0.0.1 for CLI scripts to have a valid value.

1.5 (+41 -2 lines) 01/30/2003 03:46 PM Jan Schneider jan

documentation

1.4 (+5 -5 lines) 01/30/2003 03:30 PM Jan Schneider jan

Fix constructor name and cli detection.

1.3 (+3 -3 lines) 01/30/2003 01:40 PM Chuck Hagenbuch chuck

fix typo, XHTML

1.2 (+91 -1 lines) 01/30/2003 01:28 PM Jan Schneider jan

Add constructor that detects the current environment.
Add methods to print text in different formats across all supported
environments.

1.1 01/24/2003 02:52 PM Chuck Hagenbuch chuck

- Horde_CLI:: library for common command-line tasks.
- Split Horde_Scheduler:: out into a driver model.
- add a cron driver.
- add an example crond script.