cli

package
v0.0.0-...-25c2f86 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFont = "Hack-Regular"

DefaultFont is default font name

View Source
const Usage = `` /* 825-byte string literal not displayed */

Variables

This section is empty.

Functions

func Run

func Run() (err error)

Types

type Options

type Options struct {
	Output            string `short:"o" long:"output" default:"output.png" description:"Write output image to specific filepath"`
	BackgroundColor   string `short:"b" long:"background" default:"#aaaaff" description:"Background color of the image"`
	Font              string `short:"f" long:"font" default:"Hack-Regular" description:"Specify font eg. 'Hack-Bold'"`
	Language          string `short:"l" long:"language" description:"The language for syntax highlighting"`
	Style             string `short:"s" long:"style" description:"The style for syntax highlighting"`
	Clipboard         bool   `short:"c" long:"clip" description:"Copy image to clipboard"`
	ListStyles        bool   `long:"list-styles" description:"List all available styles for syntax highlighting"`
	ListFonts         bool   `long:"list-fonts" description:"List all available fonts in your system"`
	NoLineNum         bool   `long:"no-line-number" description:"Hide the line number"`
	NoWindowAccessBar bool   `long:"no-window-access-bar" description:"Hide the window access bar"`
	ShowVersion       bool   `short:"v" long:"version" description:"Show version"`
}

Jump to

Keyboard shortcuts

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