project

package
v0.0.0-...-5256b1e Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagName is a CLI flag with an application identifier.
	FlagName = "name"

	// FlagVersion is a CLI flag to declare the application's API version.
	FlagVersion = "version"

	// FlagDir is a CLI flag to declare the main project directory.
	FlagDir = "dir"

	// FlagRootPkg is a CLI flag to declare parent package for all codebase.
	FlagRootPkg = "root-pkg"

	// FlagDocker is a CLI flag for a toggling Docker support in the generated project.
	FlagDocker = "docker-enabled"

	// FlagPrometheus is a CLI flag for a toggling Prometheus support in the generated project.
	FlagPrometheus = "disable-prometheus"

	// FlagGRPC is a CLI flag for a toggling GRPC support in the generated project.
	FlagGRPC = "disable-grpc"
)
View Source
const DirPerm = 0755

DirPerm is a permission mode for a generated directory. Permission mode establishes recursively for all subdirectories.

View Source
const FilePerm = 0644

FilePerm is a permission mode for all source code files.

Variables

This section is empty.

Functions

func Action

func Action(c *cli.Context) error

Action is an entry point for a CLI command that generates a project.

Types

This section is empty.

Jump to

Keyboard shortcuts

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