Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Jul 27, 2017
2 parents 74ffa9e + 1b8495a commit 6ca5754
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 0.2.2

* Fix `--version` option

# 0.2.1

* Fix background color [bug](https://github.com/psibi/tldr-hs/pull/3)

# 0.2.0

* Compliance with the tldr spec
Expand Down
4 changes: 3 additions & 1 deletion app/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import System.Directory
import System.FilePath
import Data.Conduit.Shell hiding (info)
import System.Environment (getArgs, withArgs)
import Paths_tldr (version)
import Data.Version (showVersion)

data TldrOpts = TldrOpts
{ pageName :: String
Expand Down Expand Up @@ -65,7 +67,7 @@ tldrParserInfo =
where
versionOption :: Parser (a -> a)
versionOption =
infoOption "0.1" (long "version" <> short 'v' <> help "Show version")
infoOption (showVersion version) (long "version" <> short 'v' <> help "Show version")

programOptions :: Parser TldrOpts
programOptions =
Expand Down
3 changes: 0 additions & 3 deletions src/Tldr.hs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ data ConsoleSetting = ConsoleSetting
, fgIntensity :: ColorIntensity
, fgColor :: Color
, bgIntensity :: ColorIntensity
, bgColor :: Color
, consoleIntensity :: ConsoleIntensity
}

Expand All @@ -37,7 +36,6 @@ defConsoleSetting =
, fgIntensity = Dull
, fgColor = White
, bgIntensity = Dull
, bgColor = Black
, consoleIntensity = NormalIntensity
}

Expand All @@ -54,7 +52,6 @@ toSGR cons =
, SetUnderlining (underline cons)
, SetBlinkSpeed (blink cons)
, SetColor Foreground (fgIntensity cons) (fgColor cons)
, SetColor Background (bgIntensity cons) (bgColor cons)
]

renderNode :: NodeType -> IO ()
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# resolver:
# name: custom-snapshot
# location: "./custom-snapshot.yaml"
resolver: lts-2.22
resolver: lts-8.4



Expand Down
2 changes: 1 addition & 1 deletion tldr.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: tldr
version: 0.2.0
version: 0.2.2
synopsis: Haskell tldr client
description: Haskell tldr client with support for updating and viewing tldr pages.
homepage: https://github.com/psibi/tldr-hs#readme
Expand Down

0 comments on commit 6ca5754

Please sign in to comment.