4 * FusionForge source control management
6 * Copyright 2012, Alain Peyrat
8 * This file is part of FusionForge.
10 * FusionForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published
12 * by the Free Software Foundation; either version 2 of the License,
13 * or (at your option) any later version.
15 * FusionForge is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 require (dirname(__FILE__).'/../common/include/env.inc.php');
26 require_once $gfcommon.'include/pre.php';
30 $methods = join('|', get_class_methods($this));
31 echo "Usage: forge.php ($methods) [arguments...]\n" ;
35 function pluginActivate ($name) {
36 $pm = plugin_manager_get_object();
38 $pm->LoadPlugin($name);
39 $plugin = $pm->GetPluginObject($name);
43 function pluginDeactivate ($name) {
44 $pm = plugin_manager_get_object();
45 $pm->deactivate($name);
49 if (count($argv) == 3) {
57 $ctl = new CliActions();
58 if (method_exists($ctl, $action)) {