The cli-setup package

[ Tags: bsd3, command-line-tools, development, library ] [ Propose Tags ]

Provides functions to set up manpages and shell completions. Intended to be used in the Setup.hs module.


[Skip to Readme]

Properties

Versions 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2.0.0, 0.2.0.1
Dependencies base (>=4.8 && <5), bytestring, directory, file-embed, process (>=1.4.0.0) [details]
License BSD3
Copyright Copyright: (c) 2018 Vanessa McHale
Author Vanessa McHale
Maintainer vamchale@gmail.com
Category Development, Command Line Tools
Home page https://github.com/vmchale/cli-setup#readme
Source repo head: darcs get https://hub.darcs.net/vmchale/cli-setup
Uploaded Fri Feb 2 05:53:57 UTC 2018 by vmchale
Distributions NixOS:0.2.0.1
Downloads 191 total (89 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-02-02 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Flags

NameDescriptionDefaultType
development

Enable -Werror

DisabledManual

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for cli-setup-0.2.0.1

[back to package description]

cli-setup

Example use taken from madlang's Setup.hs file:

import           Distribution.CommandLine
import           Distribution.Simple

main :: IO ()
main = setManpath >>
    writeManpages "man/madlang.1" "madlang.1" >>
    writeBashCompletions "madlang" >>
    defaultMain

Be sure to add man/madlang.1 (or whatever the path to your source file is) to your .cabal file's extra-source-files field.