From 59b5b1cfca1614df681055d98d602692f482f0e2 Mon Sep 17 00:00:00 2001 From: Eddoursul <89222451+eddoursul@users.noreply.github.com> Date: Mon, 18 Sep 2023 19:48:13 +0200 Subject: 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 --- src/commandline.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/commandline.h') 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 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 runPostOrganizer(OrganizerCore& core) override; +}; + // refreshes mo // class RefreshCommand : public Command -- cgit v1.3.1