cli-setup-0.2.0.5: Helper setup scripts for packaging command-line tools.

Safe HaskellNone
LanguageHaskell2010

Distribution.CommandLine

Synopsis

Documentation

writeManpages Source #

Arguments

:: FilePath

Source File

-> FilePath

Manpage file name

-> IO () 

As an example, if your source tarball contains a file man/madlang.1 you could use

writeManpages "man/madlang.1" "madlang.1"

writeBashCompletions Source #

Arguments

:: String

Executable name

-> IO () 

Add a line to the user's bashrc so that command-line completions work automatically.

setManpath :: IO () Source #

Add a line exporting the modified MANPATH to the user's bashrc, if it does not exist already.

writeTheFuck :: IO () Source #

Write a set of rules based on optparse-applicative for the command-line tool fuck.