From 9b1c4fd48fdadce7f2ca838f5c8bbb7aa039a7dc Mon Sep 17 00:00:00 2001
From: Gunnar Wrobel
Date: Tue, 14 Dec 2010 05:38:29 +0100
Subject: [PATCH] Add basic Cli interface.
---
framework/Kolab_Storage/bin/kolab-storage | 8 ++
.../Kolab_Storage/lib/Horde/Kolab/Storage/Cli.php | 69 ++++++++++++++++
framework/Kolab_Storage/package.xml | 32 +++++---
.../script/Horde/Kolab/Storage/test_drivers.php | 95 ----------------------
.../test/Horde/Kolab/Storage/Unit/CliTest.php | 53 ++++++++++++
5 files changed, 149 insertions(+), 108 deletions(-)
create mode 100755 framework/Kolab_Storage/bin/kolab-storage
create mode 100644 framework/Kolab_Storage/lib/Horde/Kolab/Storage/Cli.php
delete mode 100644 framework/Kolab_Storage/script/Horde/Kolab/Storage/test_drivers.php
create mode 100644 framework/Kolab_Storage/test/Horde/Kolab/Storage/Unit/CliTest.php
diff --git a/framework/Kolab_Storage/bin/kolab-storage b/framework/Kolab_Storage/bin/kolab-storage
new file mode 100755
index 000000000..cce42f912
--- /dev/null
+++ b/framework/Kolab_Storage/bin/kolab-storage
@@ -0,0 +1,8 @@
+#!/usr/bin/env php
+
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Storage
+ */
+
+/**
+ * Command line tools for Kolab storage.
+ *
+ * Copyright 2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file COPYING for license information (LGPL). If you did not
+ * receive this file, see
+ * http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+ *
+ * @category Kolab
+ * @package Kolab_Storage
+ * @author Gunnar Wrobel
+ * @license http://www.fsf.org/copyleft/lgpl.html LGPL
+ * @link http://pear.horde.org/index.php?package=Kolab_Storage
+ */
+class Horde_Kolab_Storage_Cli
+{
+ /**
+ * The main entry point for the application.
+ *
+ * @param array $parameters A list of named configuration parameters.
+ *
+ * 'parser' - (array) Parser configuration parameters.
+ * 'class' - (string) The class name of the parser to use.
+ * 'output' - (Horde_Cli) The output handler.
+ *