Skip to content

feat: allow loading external storage config values from file#60743

Open
icewind1991 wants to merge 1 commit into
masterfrom
external-config-value-from-file
Open

feat: allow loading external storage config values from file#60743
icewind1991 wants to merge 1 commit into
masterfrom
external-config-value-from-file

Conversation

@icewind1991

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

Some values like ssh keys can be very hard to pass trough the command line because of the special characters in the value. Loading the value from a file instead can make it much easier to set these options.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Robin Appelman <robin@icewind.nl>
@icewind1991 icewind1991 added this to the Nextcloud 35 milestone May 26, 2026
@icewind1991 icewind1991 requested a review from a team as a code owner May 26, 2026 18:42
@icewind1991 icewind1991 added the 3. to review Waiting for reviews label May 26, 2026
@icewind1991 icewind1991 requested review from ArtificialOwl, artonge, provokateurin and salmart-dev and removed request for a team May 26, 2026 18:43
Comment thread apps/files_external/lib/Command/Config.php
@@ -40,6 +41,11 @@ protected function configure(): void {
'value',
InputArgument::OPTIONAL,
'value to set the config option to, when no value is provided the existing value will be printed'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'value to set the config option to, when no value is provided the existing value will be printed'
'value to set the config option to; when omitted, the existing value is printed; with --value-from-file, this is treated as a file path'

'value-from-file',
null,
InputOption::VALUE_NONE,
'read the value from the file provided'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'read the value from the file provided'
'treat the value argument as a file path and read the config value from that file'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants