summaryrefslogtreecommitdiffstats
path: root/lib/private/Console
Commit message (Collapse)AuthorAgeFilesLines
* make failure to load app commands non-fatalRobin Appelman2024-02-021-1/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-4/+4
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* fix(install): Make installing more verboseJoas Schilling2023-11-031-7/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Cleanup plsam issues in DB/ContactsManager and ConsoleCarl Schwan2023-09-051-12/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* feat(admin_audit): Migrate to non-deprecated IEventDispatcherJoas Schilling2023-07-041-5/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: change maintenance mode info wordingDaniel Kesselberg2023-04-261-7/+3
| | | | | | In maintenance mode the database is accessible and it's possible to execute other commands then maintenance:mode Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-201-3/+3
|\ | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * fix: Adjust console formatter code to match with Symfony type hintsFerdinand Thiessen2023-04-171-3/+3
| | | | | | | | | | | | | | Symfony has added type hints on the `OutputFormatterInterface`, so we must adjust our type hints to match with Symfony. Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
* | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-051-1/+1
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(PHP8.2): Declare Symfony Application property in console applicationChristoph Wurst2023-01-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Implement occ status command via return codes (Fixes: #35704)Lee Garrett2023-01-031-1/+2
| | | | | | | | | | Running `./occ status -e` will produce any output. However, it will: exit 0 during normal operation, exit 1 when in maintenance mode, exit 2 when `./occ upgrade` is needed. Signed-off-by: Lee Garrett <lgarrett@rocketjump.eu>
* Remove OCP\App and OCP\BackgroundJobCarl Schwan2022-08-011-2/+4
| | | | | | | | | | Both deprecated since NC 23 IAppManager is the replacement for OCP\App unfortunately it can't be dependency injected in classes used by the installed otherwise the database connection is initialised too early Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Do not decorate the CLI output if it's explicitly turned offChristoph Wurst2022-04-071-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Write upgrade/not-installed notices to stderrJulius Härtl2021-08-181-3/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Improve maintenance mode infoszaimen2021-07-021-2/+2
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Move DateTime::ATOM to DateTimeInterface::ATOMChristoph Wurst2021-06-231-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-042-2/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-271-11/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* forward query exception when fallback construction failsRobin Appelman2021-02-091-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-102-2/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-052-4/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make sure maintenance mode is always casted to boolJoas Schilling2019-02-221-5/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Refactor some codeMorris Jobke2018-08-211-15/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adds a memory limit warning for console commands if the limit is below the ↵Michael Weimann2018-08-201-1/+29
| | | | | | recommended value Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Disables the maintenance warning for the maintenance command itself.Michael Weimann2018-07-011-6/+29
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Do not show "Not installed warning" during occ installMorris Jobke2018-01-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixup codeRoeland Jago Douma2017-12-221-1/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fixed typoMiha Frangez2017-05-191-1/+1
|
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* ownC -> NextcMorris Jobke2017-03-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* maintenance warning printed on STDERR rather than STDOUTnoveens2017-03-191-1/+3
| | | | | | redundant check removed Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use SystemConfig instead of AllConfig for DB stuffMorris Jobke2017-03-191-1/+1
| | | | | | * preparation for followup PRs to clean up the DB bootstrapping Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Revert unintentional log timestamp format changeJoas Schilling2017-01-301-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix default value for logdateformat - fixes #3107Morris Jobke2017-01-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* handle errors in apps while registering commandsRobin Appelman2016-11-241-2/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add upgrade command before repair, handle NeedsUpgradeExcaption betterJörn Friedrich Dreyer2016-10-241-29/+34
|
* [9.2] Register commands in info.xml (#26248)Thomas Müller2016-10-111-2/+23
| | | | | | | | | | | | * Use DI to load console commands from the apps - class name to be defined in the info.xml * Load commands from info.xml * Fix unit test * Allow Di magic for IMountManager Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do not break the output when running _completionJoas Schilling2016-09-291-5/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correct name in Console Application.phpblizzz2016-08-041-3/+3
| | | see changes :)
* Fix othersJoas Schilling2016-07-212-4/+6
|
* Use the themed Defaults everywhereJoas Schilling2016-07-151-2/+2
|
* Revert "occ web executor (#24957)"Morris Jobke2016-07-071-2/+1
| | | | This reverts commit 854352d9a064a1e469ede207493bce44fd41d96c.
* occ web executor (#24957)VicDeo2016-06-221-1/+2
| | | | | | | | | | | | * Initial web executor * Fix PHPDoc Fix broken integration test OccControllerTests do not require database access - moch them all! Kill unused sprintf
* Update license headersLukas Reschke2016-05-261-1/+1
|