From 6983304b9d11e78ebf5fd21c835dd04c776102f5 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Mon, 21 Aug 2023 13:38:20 +0200 Subject: Download and determine the digest --- app/SlackBuilder/CommandLine.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/SlackBuilder/CommandLine.hs') diff --git a/app/SlackBuilder/CommandLine.hs b/app/SlackBuilder/CommandLine.hs index 8df1b97..f486b5a 100644 --- a/app/SlackBuilder/CommandLine.hs +++ b/app/SlackBuilder/CommandLine.hs @@ -27,6 +27,7 @@ data SlackBuilderCommand | CommitCommand Text Text | ExistsCommand Text | ArchiveCommand Text Text String Text + | DownloadCommand Text String deriving (Eq, Show) data PackagistArguments = PackagistArguments @@ -69,6 +70,7 @@ slackBuilderCommand = subparser <> command "commit" (info commitCommand mempty) <> command "exists" (info existsCommand mempty) <> command "archive" (info archiveCommand mempty) + <> command "download" (info downloadCommand mempty) where slackBuildCommand = SlackBuildCommand <$> argument str (metavar "PATH") @@ -82,3 +84,6 @@ slackBuilderCommand = subparser <*> argument str (metavar "NAME_VERSION") <*> argument str (metavar "TARBALL") <*> argument str (metavar "TAG_PREFIX") + downloadCommand = DownloadCommand + <$> argument str (metavar "URI") + <*> argument str (metavar "TARGET") -- cgit v1.2.3