cli

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GithubAPIHost    = "https://api.github.com/repos"
	GithubRepoHost   = "https://github.com"
	TemplateRepoPath = "/cameronbrill/go-project-template"
	BranchesEndpoint = "/branches"
)
View Source
const DefaultProjectName = "create-go-app"

Variables

This section is empty.

Functions

func Run

func Run() int

Types

type ApiResponse

type ApiResponse interface {
	RepoRes | []BranchRes
}

type BranchRes

type BranchRes struct {
	Name   string `json:"name"`
	Commit struct {
		Sha string `json:"sha"`
		URL string `json:"url"`
	} `json:"commit"`
	Protected bool `json:"protected"`
}

type RepoRes

type RepoRes struct{}

Jump to

Keyboard shortcuts

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