cli

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package cli implements md2's command-line orchestration: flag parsing, input merging, and dispatching to the registered converters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(args []string, version string, stdin io.Reader, stdoutWriter io.Writer) error

Run parses args and performs the requested conversion(s). version is printed for -version and is resolved by the caller (main), which alone knows about build-time ldflags. stdin is read for any "-" input (typically os.Stdin; tests pass a buffer). stdoutWriter is where -stdout streams the converted result (typically os.Stdout; tests pass a buffer).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL