cmd

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package cmd hosts the different cobra commands pina-golada offers. This package is home to the generate, version and cleanup command.

Index

Constants

This section is empty.

Variables

View Source
var (
	// GoFileSelector is the regex to select go files
	GoFileSelector = regexp.MustCompile(`(.*)\.go`)
)

Functions

func Cleanup added in v1.4.0

func Cleanup(path string, l logger.Logger)

Cleanup cleans the given path of all pina-golada generated files

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Generate

func Generate(path string, parser annotation.Parser, logger logger.Logger)

Generate generates the pgl implementations for the given path

Types

type TestingInterface

type TestingInterface interface {
	// ProvideSampleGoApp returns the go sample app
	ProvideSampleGoApp() []byte
}

TestingInterface is just an interfaces

Jump to

Keyboard shortcuts

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