summaryrefslogtreecommitdiff
path: root/app/SlackBuilder/CommandLine.hs
diff options
context:
space:
mode:
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 6b915f2..4218e6b 100644
--- a/app/SlackBuilder/CommandLine.hs
+++ b/app/SlackBuilder/CommandLine.hs
@@ -25,6 +25,7 @@ data SlackBuilderCommand
| GhCommand GhArguments
| SlackBuildCommand Text Text
| CommitCommand Text Text
+ | ExistsCommand Text
deriving (Eq, Show)
data PackagistArguments = PackagistArguments
@@ -65,6 +66,7 @@ slackBuilderCommand = subparser
<> command "github" (info (GhCommand <$> ghArguments) mempty)
<> command "slackbuild" (info slackBuildCommand mempty)
<> command "commit" (info commitCommand mempty)
+ <> command "exists" (info existsCommand mempty)
where
slackBuildCommand = SlackBuildCommand
<$> argument str (metavar "PATH")
@@ -72,3 +74,4 @@ slackBuilderCommand = subparser
commitCommand = CommitCommand
<$> argument str (metavar "PATH")
<*> argument str (metavar "VERSION")
+ existsCommand = ExistsCommand <$> argument str (metavar "PATH")