summaryrefslogtreecommitdiff
path: root/app/SlackBuilder/CommandLine.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2023-09-03 10:26:43 +0200
committerEugen Wissner <belka@caraus.de>2023-09-03 10:26:43 +0200
commit77c9a2ab54b697f37e21b76c1fd82fc42dc4792e (patch)
tree882f48c34d14a9ae58642ea41ba102136d7bf8c4 /app/SlackBuilder/CommandLine.hs
parentc2b98ba395aa486c18fa002175d93aa789b231d6 (diff)
downloadslackbuilder-77c9a2ab54b697f37e21b76c1fd82fc42dc4792e.tar.gz
Add a test module
Diffstat (limited to 'app/SlackBuilder/CommandLine.hs')
-rw-r--r--app/SlackBuilder/CommandLine.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/SlackBuilder/CommandLine.hs b/app/SlackBuilder/CommandLine.hs
index 23bf840..48881e2 100644
--- a/app/SlackBuilder/CommandLine.hs
+++ b/app/SlackBuilder/CommandLine.hs
@@ -30,6 +30,7 @@ data SlackBuilderCommand
| DownloadCommand Text String
| CloneCommand Text Text Text
| DownloadAndDeployCommand Text Text
+ | Up2DateCommand
deriving (Eq, Show)
data PackagistArguments = PackagistArguments
@@ -75,6 +76,7 @@ slackBuilderCommand = subparser
<> command "download" (info downloadCommand mempty)
<> command "clone" (info cloneCommand mempty)
<> command "deploy" (info deployCommand mempty)
+ <> command "up2date" (info up2DateCommand mempty)
where
slackBuildCommand = SlackBuildCommand
<$> argument str (metavar "PATH")
@@ -98,3 +100,4 @@ slackBuilderCommand = subparser
deployCommand = DownloadAndDeployCommand
<$> argument str (metavar "URI")
<*> argument str (metavar "TARBALL")
+ up2DateCommand = pure Up2DateCommand