repo

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigEntity

type ConfigEntity struct {
	Language string `json:"language"`
	Version  string `json:"version"`
	Project  string `json:"project"`
}

type CoreEntity

type CoreEntity struct {
	*ConfigEntity
	// contains filtered or unexported fields
}

func New

func New(cfg *ConfigEntity) (*CoreEntity, error)

func (*CoreEntity) GetRepo

func (core *CoreEntity) GetRepo() error

GetRepo 获取仓库

func (*CoreEntity) GetTemplate

func (core *CoreEntity) GetTemplate() string

GetTemplate 获取模版

func (*CoreEntity) GetVersion

func (core *CoreEntity) GetVersion() (string, error)

GetVersion 获取仓库版本

func (*CoreEntity) InitProject

func (core *CoreEntity) InitProject()

InitProject 初始化项目

func (*CoreEntity) RemoteToLocal

func (core *CoreEntity) RemoteToLocal() error

RemoteToLocal 获取到本地

type GithubRepoVersion

type GithubRepoVersion struct {
	TagName string `json:"tag_name"`
}

Jump to

Keyboard shortcuts

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