项目作者: lovasko

项目描述 :
Codebase pretty-printing
高级语言: Haskell
项目地址: git://github.com/lovasko/wembley.git
创建时间: 2016-11-18T22:43:13Z
项目社区:https://github.com/lovasko/wembley

开源协议:Other

下载


wembley

Build Status

Introduction

Command-line utility to pretty-print a whole codebase into a document form.
This output is usable for code reviews or archival purposes. Two formats are
supported as of now: GitHub Flavoured Markdown and LaTeX (package minted used
for source code rendering).

Usage

  1. $ wembley --help
  2. wembley - pretty-print a whole codebase into a document
  3. Usage: wembley [-e|--extensions EXTS] (-n|--name NAME) [-f|--format FORMAT]
  4. (-o|--output PATH) [-d|--root-dir PATH]
  5. Available options:
  6. -h,--help Show this help text
  7. -e,--extensions EXTS Comma-separated list of relevant file
  8. extensions (default: "hs")
  9. -n,--name NAME Name of the codebase. Appears in footers and as a
  10. title
  11. -f,--format FORMAT Format of the resulting document, supported: latex,
  12. markdown (default: latex)
  13. -o,--output PATH Location of the resulting document
  14. -d,--root-dir PATH Root source directory path (default: ".")

Install

There are two methods of obtaining the utility:

  • running cabal install wembley
  • cloning this repo and running stack build --pedantic && stack exec wembley

Example

Running the following command in your shell:

  1. $ git clone https://github.com/lovasko/m_list.git
  2. $ wembley --extensions h,c \
  3. --name m_list \
  4. --format markdown \
  5. --output m_list.md \
  6. --root-dir m_list/src

will yield this
result.
Output in the format latex, once rendered, looks like
this.

License

The wembley utility is licensed under the terms of the
3-clause BSD license.

Author

Daniel Lovasko daniel.lovasko@gmail.com