golang

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultWorkPath      = ".github-repo-scaffolding-golang"
	DefaultTemplateRepo  = "dtm-scaffolding-golang"
	DefaultTemplateOwner = "merico-dev"
	TransitBranch        = "init-with-devstream"
	DefaultMainBranch    = "main"
)

Variables

This section is empty.

Functions

func Create added in v0.2.0

func Create(options map[string]interface{}) (map[string]interface{}, error)

Create installs github-repo-scaffolding-golang with provided options.

func Delete added in v0.2.0

func Delete(options map[string]interface{}) (bool, error)

Delete uninstalls github-repo-scaffolding-golang with provided options.

func InitRepoLocalAndPushToRemote added in v0.1.0

func InitRepoLocalAndPushToRemote(repoPath string, opts *Options, ghClient *github.Client) error

func MergeCommits added in v0.2.0

func MergeCommits(ghClient *github.Client, mainBranch string) error

func Read added in v0.2.0

func Read(options map[string]interface{}) (map[string]interface{}, error)

Read check the health for github-repo-scaffolding-golang with provided param.

func Render added in v0.1.0

func Render(filePath string, opts *Options) ([]byte, error)

func Update added in v0.2.0

func Update(options map[string]interface{}) (map[string]interface{}, error)

Update re-installs github-repo-scaffolding-golang with provided options.

func WalkLocalRepoPath added in v0.1.0

func WalkLocalRepoPath(repoPath string, opts *Options, ghClient *github.Client) error

Types

type Config added in v0.1.0

type Config struct {
	AppName   string
	ImageRepo string
	Repo      Repo
}

type Options added in v0.3.1

type Options struct {
	Owner     string
	Repo      string
	Branch    string
	ImageRepo string `mapstructure:"image_repo"`
}

TODO(daniel-hutao): Param should keep as same as other plugins named Param or keep as same as plugin github-actions?

type Repo added in v0.1.0

type Repo struct {
	Name  string
	Owner string
}

Jump to

Keyboard shortcuts

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