boot

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 7 Imported by: 13

Documentation

Overview

Package boot contains an extension of goyek.Main which additionally defines flags and configures the flow in a convenient way.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is an extension of goyek.Main which additionally defines flags and uses the most useful middlewares.

Example
// define a flag used by a task
msg := flag.String("msg", "hello world", `message to display by "hi" task`)

// define a task printing the message (configurable via flag)
goyek.Define(goyek.Task{
	Name:  "hi",
	Usage: "Greetings",
	Action: func(a *goyek.A) {
		a.Log(*msg)
	},
})

// run the build pipeline
boot.Main()
Output:

Types

This section is empty.

Jump to

Keyboard shortcuts

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