gousage

command
v0.0.0-...-43c8ab9 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

README

cloudeng.io/go/cmd/gousage

CircleCI Go Report Card

Usage of gousage

gousage is a utility for generating a go source code file containing the usage information for command packages.

gousage can be applied to multiple packages and will generate its output for each package in that package's directory.

For example, the following will generate cmdusage.go files for every main package found in ./...

go run cloudeng.io/go/cmd/`gousage` --overwrite ./...

Command line flags

-go-output string
  	name of generated go file. (default "cmdusage.go")
-overwrite
  	overwrite existing file.

Documentation

Overview

Usage of gousage:

gousage is a utility for generating a go source code file containing the usage information for command packages.

gousage can be applied to multiple packages and will generate its output for each package in that package's directory.

For example, the following will generate cmdusage.go files for every main package found in ./...

go run cloudeng.io/go/cmd/gousage --overwrite ./...

Command line flags:

-go-output string
  	name of generated go file. (default "cmdusage.go")
-overwrite
  	overwrite existing file.

Jump to

Keyboard shortcuts

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