6.0.0-beta1
8/11/25

[#12923] Cli for editing conf.php
Summary Cli for editing conf.php
Queue Horde Base
Queue Version Git master
Type Enhancement
State Rejected
Priority 1. Low
Owners ralf.lang (at) ralf-lang (dot) de
Requester ralf.lang (at) ralf-lang (dot) de
Created 01/18/2014 (4223 days ago)
Due 01/30/2014 (4211 days ago)
Updated 03/18/2018 (2703 days ago)
Assigned 01/18/2014 (4223 days ago)
Resolved 03/18/2018 (2703 days ago)
Milestone
Patch No

History
03/18/2018 11:50:51 AM Ralf Lang Comment #4
State ⇒ Rejected
Reply to this comment
Build an API and an RPC/REST interface. Optionally build a phar client 
for that API.
02/11/2014 11:17:48 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git (master):

commit d6ed233fa7d87e9858c8424a3d3923a1ac1afcf3
Author: Jan Schneider <jan@horde.org>
Date:   Tue Feb 11 12:13:36 2014 +0100

     Revert "Implement modular cli and a config editing module 
(Request #12923)."

     This reverts commit a90e4c02a538981f772a45205c991d466f9d472a.

     Conflicts:
             framework/Core/package.xml
             horde/bin/horde-cli
             horde/docs/CHANGES
             horde/lib/AdminCli.php
             horde/lib/AdminCli/Module/Base.php
             horde/lib/AdminCli/Module/Config.php
             horde/package.xml

  framework/Core/lib/Horde/Config.php  |   29 +-----
  framework/Core/package.xml           |    2 -
  horde/bin/horde-cli                  |   29 -----
  horde/docs/CHANGES                   |    1 -
  horde/lib/AdminCli.php               |   77 ------------
  horde/lib/AdminCli/Module/Base.php   |   94 --------------
  horde/lib/AdminCli/Module/Config.php |  221 
----------------------------------
  horde/package.xml                    |  221 
+---------------------------------
  8 files changed, 2 insertions(+), 672 deletions(-)

http://git.horde.org/horde-git/-/commit/d6ed233fa7d87e9858c8424a3d3923a1ac1afcf3
01/23/2014 07:45:49 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit a90e4c02a538981f772a45205c991d466f9d472a
Author: Ralf Lang <lang@b1-systems.de>
Date:   Thu Jan 23 21:44:46 2014 +0200

     Implement modular cli and a config editing module (Request #12923).

  framework/Core/lib/Horde/Config.php  |   29 +++++-
  framework/Core/package.xml           |    2 +
  horde/bin/horde-cli                  |   29 +++++
  horde/docs/CHANGES                   |    1 +
  horde/lib/AdminCli.php               |   77 ++++++++++++
  horde/lib/AdminCli/Module/Base.php   |   94 ++++++++++++++
  horde/lib/AdminCli/Module/Config.php |  221 
++++++++++++++++++++++++++++++++++
  horde/package.xml                    |  221 
+++++++++++++++++++++++++++++++++-
  8 files changed, 672 insertions(+), 2 deletions(-)

http://git.horde.org/horde-git/-/commit/a90e4c02a538981f772a45205c991d466f9d472a
01/18/2014 08:21:43 PM Ralf Lang Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Assigned to Ralf Lang
Queue ⇒ Horde Base
Due ⇒ 01/30/2014
Summary ⇒ Cli for editing conf.php
Type ⇒ Enhancement
State ⇒ Assigned
Reply to this comment
Description:
Provide a cli for editing conf.php on horde apps.
Provide an equivalent --init for the "generate config" button which 
uses defaults from conf.xml when there is no conf.php value yet.
Only allow setting values which exist in the app's conf.xml
Use Cli_Modular to expand it later for prefs and perms 
editing/importing/exporting/backend migration

Purpose:
This is mainly for puppet provisioning/maint. of horde installations 
as there is no augeas lense for php. It could be used for any kind of 
automated setup/change management.

Status:
I'm already working on a prototype and I want to include it into the 
horde base module where the admin stuff lives. I'll commit what I have 
once it works as desired. Please evaluate if this requires a 
minor/feature release or if it can be added in a patch release. No 
existing files or functionality will be touched.

Saved Queries