blockprint

command module
v0.0.0-...-053ca4d Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

blockprint

Blockprint text in a variety of fonts.

The blockprint command line interface (CLI) accepts a phrase or string of text, and an optional font name, and prints it to the stdout as "block print" text.

This makes use of the go-figure package by Daniel Deutsch.

General Usage

Usage:
   blockprint [options] [command]    Print large text, 1.0-3

Commands:
    config                           View or set application configuration   
    fonts                            List fonts                              
    help                             Show this help text                     
    version                          Show application version                
   *print                            Print text                              

(*) indicates the default subcommand if none given

Options:
   --help, -h                        Show this help text                    
   --profile, -p <string>            Name of profile to use [APP_PROFILE]   
   --version, -v                     Show application version     

The blockprint command accepts a command, which can show the preferences configuration, list the avialable fonts, show the help text and version of the CLI, and print a string of text.

You can get additional help by using the --help option after any of the above subcommands.

Printing Text

Use the print subcommand to print text. The subcommand is followed by a parameter that is a quoted string containing the text to print. This can also optionally include a font name if something other than the default fault is desired.

blockprint print "Hello" --font italic

This prints the text "Hello" (without the quotation marks, of course) to stdout, using the font named italic. An error is reported if the font name is not valid.

Listing Fonts

Use the fonts subcommand to print the list of available fonts. These fonts are all built in to the blockprint command line tool, and there are currently no supported means of extending this font set.

blockprint fonts

The output of the command is a listing of the font names.

Default Font

Use the config subcommand to view the default fault, or to set the name of the font.

blockprint config set default.font=italic

This sets the default font name to "italic". If a font is not specified on the command line, this is the font that will be used. The initial default font is "standard".

You can also use the config show command to see the current default font name.

blockprint config show

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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