Skip to content

Latest commit

 

History

History
91 lines (51 loc) · 1.5 KB

application.md

File metadata and controls

91 lines (51 loc) · 1.5 KB

Application

Catpandoc Index / Catpandoc / Application

Auto-generated documentation for catpandoc.application module.

cli

Show source in application.py:65

Parse args from the command line.

Signature

def cli() -> None: ...

handle

Show source in application.py:43

Handle the args and output to the terminal.

Arguments


  • args argparse.Namespace - Args

Signature

def handle(args: argparse.Namespace) -> None: ...

pandoc2ansi

Show source in application.py:16

Signature

def pandoc2ansi(file: str, width: int = 79) -> str: ...

pandoc2plain

Show source in application.py:39

Signature

def pandoc2plain(file: str, width: int = 79) -> str: ...

stripAnsi

Show source in application.py:24

Strip ansi codes from a given string.

Arguments


  • string str - string to strip codes from

Returns


  • str - plaintext, utf-8 string (safe for writing to files)

Signature

def stripAnsi(string: str) -> str: ...