aboutsummaryrefslogtreecommitdiffstats
path: root/app/Main.hs
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-15 03:14:35 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2023-12-15 03:22:40 +0100
commite1eb6c363cc79747931a960a465a34fb084c9c02 (patch)
tree328bed14e92d08d0327d3e38bdd29d058ceb71df /app/Main.hs
parentd370389451094804c3a642dc42426d210f1d49c1 (diff)
chore: drop global option `internalTags`
Diffstat (limited to 'app/Main.hs')
-rw-r--r--app/Main.hs23
1 files changed, 2 insertions, 21 deletions
diff --git a/app/Main.hs b/app/Main.hs
index 06b326c..fe031af 100644
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -353,7 +353,6 @@ import Prelude hiding (id)
data Options = Options
{ command :: Command,
- internalTags :: Bool,
colorize :: Color,
noPager :: Bool,
width :: Maybe Int
@@ -369,18 +368,10 @@ options :: O.Parser Options
options =
Options
<$> cmd
- <*> internalTagsFlag
<*> colorOption
<*> noPagerFlag
<*> widthOption
-internalTagsFlag :: O.Parser Bool
-internalTagsFlag =
- O.switch
- ( O.long "internal-tags"
- <> O.help "Whether to display internal tags."
- )
-
colorOption :: O.Parser Color
colorOption =
O.option
@@ -584,19 +575,9 @@ main = do
if edit
then editIssues [issue]
else putDoc colorize noPager width $ showIssue (M.elems issues) issue
- Options {colorize, noPager, width, internalTags, command = Tags} -> do
+ Options {colorize, noPager, width, command = Tags} -> do
issues <- (.issues) <$> H.getIssues
- let tags =
- concatMap
- ( \issue ->
- issue.tags
- ++ ( if internalTags
- then issue.internalTags
- else []
- )
- )
- issues
- putDoc colorize noPager width tags
+ putDoc colorize noPager width $ concatMap (.tags) issues
Options {colorize, noPager, width, command = Search {pattern, closed, detailed}} -> do
issues <-
I.applyClosed closed