Documentation ¶
Index ¶
- Constants
- func BlockDownloadFile(client http.Client, fileUrl, dir, filename string)
- func DownloadFile(client http.Client, fileUrl, dir, filename string, wg *sync.WaitGroup)
- func GetLineInput(toVar *string) (int, error)
- func IsExist(path string) bool
- func RunGitAddCommand()
- func RunGitCommitCommand(commit string)
- func WriteFile(path, content string)
Constants ¶
View Source
const ( VERSION = "v1.3.1" // 版本号 DefaultStaticPort = "5001" // 静态服务端口 DocsTemplateBase = "https://cdn.jsdelivr.net/gh/NucoTech/nuco-docsify@" // 模板CDN地址 DocsTemplateRepo = "https://github.com/NucoTech/nuco-docsify/tree/main/docs" // 模板仓库地址 NewVersionCDN = "https://download.fastgit.org/NucoTech/nuco-backend-cli/releases/download/" )
常量信息
Variables ¶
This section is empty.
Functions ¶
func BlockDownloadFile ¶
阻塞下载文件
func DownloadFile ¶
下载文件
func GetLineInput ¶
func RunGitAddCommand ¶
func RunGitAddCommand()
func RunGitCommitCommand ¶
func RunGitCommitCommand(commit string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.