Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cli is the fejkdata command: it renders the template on its stdin with fake values from the modules it is given and any directories layered over them. A program passing its own modules to Main is a fejkdata CLI carrying them, for example os.Exit(cli.Main(append(data.Modules(), mydata)...)).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(modules ...fs.FS) int

Main runs the command on the process's arguments and standard streams over modules, each passed to fejkdata.WithDataFS, and returns the exit code: 0 ok, 1 runtime error, 2 misuse. --no-shipped-data leaves modules out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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