flags

package
v3.0.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Common
}

type Common

type Common struct {
	NoColour bool `description:"Disable colour in output"`
}

type Init

type Init struct {
	Common

	PackageName  string `name:"p" description:"Package name" default:"main"`
	TemplateName string `name:"t" description:"Name of built-in template to use, path to template or template url" default:"vanilla"`
	ProjectName  string `name:"n" description:"Name of project" default:""`
	ProjectDir   string `name:"d" description:"Project directory" default:"."`
	Quiet        bool   `name:"q" description:"Suppress output to console"`
	List         bool   `name:"l" description:"List templates"`
}

type PluginInit

type PluginInit struct {
	Name        string `name:"n" description:"Name of plugin" default:"example_plugin"`
	Description string `name:"d" description:"Description of plugin" default:"Example plugin"`
	PackageName string `name:"p" description:"Package name for plugin" default:""`
	OutputDir   string `name:"o" description:"Output directory" default:"."`
	Quiet       bool   `name:"q" description:"Suppress output to console"`
}

Jump to

Keyboard shortcuts

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