aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Console
Commit message (Collapse)AuthorAgeFilesLines
* fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: when already upgrading, don't instruct to run `occ upgrade`occ-upgrade-reminderJosh2025-02-051-1/+1
| | | | | Fixes #36289 Signed-off-by: Josh <josh.t.richards@gmail.com>
* fix(command): Make method compatible with upstream class (requires 3rdparty ↵Joas Schilling2024-10-071-4/+4
| | | | | | bump) Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(command): Make method compatible with upstream class (backportable)Joas Schilling2024-10-071-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore(legacy): Introduce public version ct plass and drop version methods ↵clean/version-ocpJulius Knorr2024-09-201-1/+3
| | | | | | from OC_Util Signed-off-by: Julius Knorr <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Code cleanup in lib/private/Console/ApplicationThomas Citharel2024-09-101-10/+15
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-7/+7
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-242-46/+8
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Migrate away from OC_App toward the IAppManagerCôme Chilliet2024-04-221-22/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into refactor/OC-Server-getThemingDefaultsJohn Molakvoæ2024-02-232-24/+29
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * 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>
* | Refactor `OC\Server::getThemingDefaults`Andrew Summers2023-08-291-1/+1
|/ | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* 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>