diff options
| author | Eddoursul <89222451+eddoursul@users.noreply.github.com> | 2023-09-18 19:48:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-18 19:48:13 +0200 |
| commit | 59b5b1cfca1614df681055d98d602692f482f0e2 (patch) | |
| tree | 3f7a5c5b83acb5e7139283502344328825f4fcb6 /src/commandline.h | |
| parent | a6879e2c63755c3f2254101cc48566e1e4611332 (diff) | |
Download files from direct URLs via a command line parameter (#1873)
* Download files via a command line parameter
* Use a GET parameter to predetermine Content-Disposition header in S3-compatible temporary URLs
Diffstat (limited to 'src/commandline.h')
| -rw-r--r-- | src/commandline.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/commandline.h b/src/commandline.h index c93d77f5..3d782105 100644 --- a/src/commandline.h +++ b/src/commandline.h @@ -205,6 +205,20 @@ protected: std::optional<int> runPostOrganizer(OrganizerCore& core) override; }; +// downloads a file +// +class DownloadFileCommand : public Command +{ +protected: + Meta meta() const override; + + po::options_description getInternalOptions() const override; + po::positional_options_description getPositional() const override; + + bool canForwardToPrimary() const override; + std::optional<int> runPostOrganizer(OrganizerCore& core) override; +}; + // refreshes mo // class RefreshCommand : public Command |
