[icinga-checkins] icinga.org: icingaweb2-module-director/master: CLI: support commands

git at icinga.org git at icinga.org
Fri Jul 22 02:17:44 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: 0a33e4f1edc96a39ded8d45b95c82c9e7a718a2a
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=0a33e4f1edc96a39ded8d45b95c82c9e7a718a2a

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Jul 22 02:17:06 2016 +0200

CLI: support commands

refs #12202

---

 application/clicommands/CommandCommand.php |   15 +++++++++++++++
 doc/60-CLI.md                              |    1 +
 2 files changed, 16 insertions(+)

diff --git a/application/clicommands/CommandCommand.php b/application/clicommands/CommandCommand.php
new file mode 100644
index 0000000..5c96442
--- /dev/null
+++ b/application/clicommands/CommandCommand.php
@@ -0,0 +1,15 @@
+<?php
+
+namespace Icinga\Module\Director\Clicommands;
+
+use Icinga\Module\Director\Cli\ObjectCommand;
+
+/**
+ * Manage Icinga Commands
+ *
+ * Use this command to show, create, modify or delete Icinga Command
+ * objects
+ */
+class CommandCommand extends ObjectCommand
+{
+}
diff --git a/doc/60-CLI.md b/doc/60-CLI.md
index 3751f7a..a9be042 100644
--- a/doc/60-CLI.md
+++ b/doc/60-CLI.md
@@ -21,6 +21,7 @@ Icinga objects of a specific type:
 
 Currently the following object types are available on CLI:
 
+* command
 * endpoint
 * host
 * hostgroup



More information about the icinga-checkins mailing list