Alexander A. Klimov
1aada1abbb
Present the fact that Icinga Web 2's config directory isn't readable in a nicer way
...
fixes #11119
2016-02-25 17:31:09 +01:00
Alexander A. Klimov
9c592ead23
icingacli: repair command and action shortcuts
...
refs #11120
2016-02-10 13:28:34 +01:00
Alexander A. Klimov
474803fee4
Change all license headers to only reflect a file's year of creation
...
refs #11000
2016-02-08 15:41:00 +01:00
Johannes Meyer
424557f194
StdoutWriter: Rename to StderrWriter
2016-01-21 11:47:11 +01:00
Johannes Meyer
9240d1b4e0
cli: Polish log handling
...
* Reintroduced Command::$isDebugging, now without typo
* Removed @deprecated from Command::$isVerbose
* Changed default log level to WARNING
* Adjusted --verbose and --debug to activate log level INFO and DEBUG, respectively
2016-01-21 11:29:28 +01:00
Johannes Meyer
37dc601505
Command: Remove property "isDebugging"
...
It's not used anywhere and wrong initalized anyway.
2016-01-19 15:08:20 +01:00
Johannes Meyer
be239b9a22
Cli: Configure logging properly but also offer customisations
2016-01-19 15:07:17 +01:00
Thomas Gelf
94690f4fda
Cli\Screen: fix tput for rows (it's lines)
2015-11-16 18:50:48 +01:00
Alexander A. Klimov
327cf37326
Command: make $config and $configs protected
2015-11-03 16:11:20 +01:00
Alexander A. Klimov
e170d5b79a
Command::fail(): construct IcingaException printf-like
...
The first argument of IcingaException::__construct() must be a printf-like format string, but Command::fail() must accept any message string.
2015-11-03 10:45:39 +01:00
Matthias Jentsch
2d9d3a0788
Detect exact names during autocompletion
...
Do not recognize substrings of strings as the full string in searchMatch.
fixes #9633
2015-08-21 13:48:11 +02:00
Johannes Meyer
982e226db0
IcingaException: Add utility method to format exceptions as one-liner
2015-07-24 16:19:20 +02:00
Johannes Meyer
c1a3d205bc
Show more details about unhandled exceptions in the CLI
...
fixes #9646
2015-07-24 15:58:32 +02:00
Alexander A. Klimov
392047b2ee
Add support for command line arguments in the format --arg=<value>
...
refs #8472
2015-06-10 17:19:49 +02:00
Eric Lippmann
338fad5da9
cli: Add Params::shiftRequired()
2015-05-20 10:30:00 +02:00
Eric Lippmann
ccaebd1d73
cli: Rename Params::req() to ::getRequired()
2015-05-20 10:30:00 +02:00
Alexander Klimov
967a2e82dc
Use (only) "@return $this" in fluent interfaces' documentation
2015-04-07 14:24:11 +02:00
Eric Lippmann
002e793a53
lib: Add Params::req()
...
Params::req() should be used for requiring a mandatory CLI parameter.
refs #8886
2015-04-07 12:20:37 +02:00
Eric Lippmann
8563d5ed3f
PHPDoc: Use @var instead of @type
...
Becasue of too many kittens PSR-5 backed off of deprecating @var.
So that's the way we go too.
2015-03-12 16:08:47 +01:00
Eric Lippmann
6bae2e0a53
Note that our license is GPL v2 or any later version in our license header instead of pointing to the license's URL
2015-02-04 10:52:27 +01:00
Eric Lippmann
5b4fab0750
Add license header
...
This time without syntax errors hopefully :)
2015-02-03 16:27:59 +01:00
Eric Lippmann
5fa2e3cfdc
Revert "Add license header"
...
This reverts commit 338d067aba
.
2015-02-03 16:16:26 +01:00
Eric Lippmann
338d067aba
Add license header
...
fixes #7788
2015-02-03 15:51:04 +01:00
Eric Lippmann
70c564bb0e
Cli: Remove useless sprintf format in Command::fail()
2014-12-30 14:41:00 +01:00
Eric Lippmann
8eb37d9d76
Cli/Command: Add @type PHPDoc to params
2014-12-30 14:33:36 +01:00
Eric Lippmann
ce69300c9a
cli: Fix the path to the clicommands
2014-11-14 16:01:40 +01:00
Eric Lippmann
bfa834fc3b
Remove constant ICINGAWEB_APPDIR
...
We should avoid use of constants.
2014-11-13 09:33:31 +01:00
Eric Lippmann
fa9bd59565
lib: Support `isset()' and `empty()' checks on CLI params
2014-10-01 08:17:35 +02:00
Alexander Klimov
45638b218c
Throw IcingaException rather than Exception
...
fixes #7014
2014-08-27 16:03:15 +02:00
Alexander Klimov
febb2d1ae2
ProgrammingError: extend IcingaException
...
refs #6931
2014-08-26 11:15:19 +02:00
Thomas Gelf
a38d71f17c
Cli\Command: provide Config()
...
This makes it feel more like action controllers
fixes #6954
2014-08-19 10:27:26 +02:00
Johannes Meyer
3105c2059e
Remove license headers from all files
...
refs #6309
2014-07-15 13:43:52 +02:00
Johannes Meyer
561616dca0
Add support for multi-value options
...
Makes it possible to supply options multiple times and to supply the
"--" flag to indicate that there are no options anymore to parse
refs #6092
2014-06-13 09:58:50 +02:00
Johannes Meyer
851977cbeb
Revert "Add clicommands to run unit- and style-tests"
...
This reverts commit 0805d73e34
.
2014-06-13 09:14:22 +02:00
Johannes Meyer
0805d73e34
Add clicommands to run unit- and style-tests
...
refs #6092
2014-06-12 16:29:07 +02:00
Thomas Gelf
4202e34d13
bootstrapping: play nice with duplicate modules
...
A module loaded manually could also exist in the list of enabled
modules if a configuration is given and a module with the same name
has been enabled. This used to confuse documentation.
2014-06-04 23:37:36 +00:00
Thomas Gelf
bdcec5a253
Cli\Loader: allow injecting a module name
...
This helps those who prefer to create their own executables instead
of creating icingacli subcommands.
refs #6411
2014-06-04 23:04:11 +00:00
Thomas Gelf
55880cb5a3
packaging/config: rename ICINGA_APPDIR
...
Renamed ICINGA_APPDIR to ICINGAWEB_APPDIR for consistency. This way
it fits ICINGAWEB_CONFIGDIR.
refs #6400
2014-06-04 21:11:27 +00:00
Gunnar Beutner
d01a98b7e6
Fix some of the time-related grammar mistakes
...
This updates some of the messages to use "For"
instead of "Since" where appropriate.
fixes #5981
2014-05-29 11:30:08 +02:00
Thomas Gelf
a7b5893918
Detect TTY support and avoid ANSI colors if none
...
fixes #5992
2014-04-18 14:36:46 +00:00
Michael Friedrich
4ce7ea503f
Rename help and documentation to icingacli.
...
Refs #5802
2014-03-19 17:25:53 +01:00
Alexander Klimov
b410ebeed6
Remove unnecessary spaces at end of line
2014-03-06 13:08:11 +01:00
Johannes Meyer
68357e9ca2
Fix coding style
2014-02-21 14:07:32 +01:00
Thomas Gelf
6096b23a76
CLI fix for --watch, hide autocomplete documentation
2014-02-14 13:19:56 +00:00
Johannes Meyer
bd34669357
Refactor i18n implementation
...
One can now use $this->translate(msg) in a view or controller without the
need to pass the module domain (web&cli). Forms still need to be built
with _t(msg) and _mt(dom, msg).
refs #5533
2014-01-29 16:25:08 +01:00
Thomas Gelf
5661e41c73
Trace option for CLI commands
...
Added --trace to show full stack trace if an exception is thrown
fixes #5555
2014-01-22 12:08:20 +00:00
Thomas Gelf
3008527b41
Autocompletion for the BASH
...
Implemented in a dedicated Icinga Web CLI command, bash config snippet
is therefore pretty compact.
fixes #5520
2014-01-22 11:45:42 +00:00
Thomas Gelf
ba5ea18adf
CLI should load modules and not enable them
...
fixes #5527
2014-01-22 11:36:11 +00:00
Thomas Gelf
92ced41a77
A few new ANSI screen helpers
2013-10-22 15:52:13 +00:00
Thomas Gelf
88223acc47
Allow 'false' lookup components, improve help
2013-10-22 13:52:00 +00:00