diff options
| author | Eugen Wissner <belka@caraus.de> | 2023-08-18 07:50:18 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2023-08-18 07:50:18 +0200 |
| commit | 258604f22d2bc50480aa4eb57778ab96c97cf1c6 (patch) | |
| tree | d6fb3c1ce16879b191bc7adba91065d8c6cc7976 /app/SlackBuilder/CommandLine.hs | |
| parent | fd649b66f57123aad95861e636299a2d0a5ca6f7 (diff) | |
| download | slackbuilder-258604f22d2bc50480aa4eb57778ab96c97cf1c6.tar.gz | |
Support repository directory in the clone function
Diffstat (limited to 'app/SlackBuilder/CommandLine.hs')
| -rw-r--r-- | app/SlackBuilder/CommandLine.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/SlackBuilder/CommandLine.hs b/app/SlackBuilder/CommandLine.hs index 4218e6b..8df1b97 100644 --- a/app/SlackBuilder/CommandLine.hs +++ b/app/SlackBuilder/CommandLine.hs @@ -26,6 +26,7 @@ data SlackBuilderCommand | SlackBuildCommand Text Text | CommitCommand Text Text | ExistsCommand Text + | ArchiveCommand Text Text String Text deriving (Eq, Show) data PackagistArguments = PackagistArguments @@ -67,6 +68,7 @@ slackBuilderCommand = subparser <> command "slackbuild" (info slackBuildCommand mempty) <> command "commit" (info commitCommand mempty) <> command "exists" (info existsCommand mempty) + <> command "archive" (info archiveCommand mempty) where slackBuildCommand = SlackBuildCommand <$> argument str (metavar "PATH") @@ -75,3 +77,8 @@ slackBuilderCommand = subparser <$> argument str (metavar "PATH") <*> argument str (metavar "VERSION") existsCommand = ExistsCommand <$> argument str (metavar "PATH") + archiveCommand = ArchiveCommand + <$> argument str (metavar "REPO") + <*> argument str (metavar "NAME_VERSION") + <*> argument str (metavar "TARBALL") + <*> argument str (metavar "TAG_PREFIX") |
