packages feed

tldr 0.7.0 → 0.7.1

raw patch · 4 files changed

+15/−5 lines, 4 files

Files

CHANGELOG.md view
@@ -1,3 +1,7 @@+# 0.7.1++* Client gives non zero exit status for non-existent pages.+ # 0.7.0  * Make it obey --language (-L) option.
README.md view
@@ -25,7 +25,8 @@ $ tldr --help tldr - Simplified and community-driven man pages -Usage: tldr [-v|--version] ((-u|--update) | [-p|--platform PLATFORM] COMMAND)+Usage: tldr [-v|--version] ((-u|--update) | [-p|--platform PLATFORM]+            [-L|--language LOCALE] COMMAND | (-a|--about))   tldr Client program  Available options:@@ -34,7 +35,9 @@   -u,--update              Update offline cache of tldr pages   -p,--platform PLATFORM   Prioritize specfic platform while searching. Valid                            values include linux, osx, windows, sunos+  -L,--language LOCALE     Preferred language for the page returned   COMMAND                  name of the command+  -a,--about               About this program ```  Or a much better example of the usage:
app/Main.hs view
@@ -11,11 +11,12 @@ import Data.Semigroup ((<>)) import qualified Data.Set as Set import Data.Version (showVersion)-import System.IO (stdout)+import System.IO (stdout, stderr, hPutStrLn) import Options.Applicative import Paths_tldr (version) import System.Directory import System.Environment (getArgs, getExecutablePath, lookupEnv)+import System.Exit (exitFailure) import System.FilePath import System.Process.Typed import Data.Char (toLower)@@ -196,7 +197,9 @@         Just path -> renderPage path stdout         Nothing -> do           if checkLocale locale-            then putStrLn ("No tldr entry for " <> (intercalate " " pages))+            then do+              hPutStrLn stderr ("No tldr entry for " <> (intercalate " " pages))+              exitFailure             else handleTldrOpts                    (opts                       { tldrAction =
tldr.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 88d378cdcf8422ec2651e3d350ffcb2f0a4f7a46dce43516286864b209522d78+-- hash: 10ec649ff467c4fa6cedd898599125c78e4b7c56269fac74fe81112e0fec75f9  name:           tldr-version:        0.7.0+version:        0.7.1 synopsis:       Haskell tldr client description:    Haskell tldr client with support for viewing tldr pages. Has offline                 cache for accessing pages. Visit https://tldr.sh for more details.