commands

package
v0.0.0-...-3539f02 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Config is the cli configuration for the user

Functions

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.

Types

type FixturesCmd

type FixturesCmd struct {
	Cmd *cobra.Command
	Cfg *config.Config
}

FixturesCmd prints a list of all the available sample projects that users can generate

type HttpHandler

type HttpHandler struct{}

create a handler struct

func (HttpHandler) ServeHTTP

func (h HttpHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

implement `ServeHTTP` method on `HttpHandler` struct

Jump to

Keyboard shortcuts

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