examples/

directory
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT

README

Examples

This directory contains a bunch of example programs built with cli to show you how the library works and how you might implement common patterns.

./cover

Not really an example, but holds the source code used to generate the cover image with silicon

./quickstart

Implements the quickstart command from the main project README

./subcommands

A CLI with multiple subcommands, each with their own flags and expected arguments. Shows how to easily store parsed flag values in an options struct and pass them around your program.

./namedargs

A CLI with named positional arguments that may or may not have default values. Shows how to retrieve these arguments by name and use them without having to care if they were provided or you're using the default.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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