Documentation
¶
Overview ¶
Package cmds holds commands being used for scaffolding
Index ¶
- Variables
- func DownloadFromURL(name, sourceURL, archiveType, binaryName, destPath string) error
- func DownloadFromURLTemplate(...) error
- func DownloadGoTool(name, module, version, goos, goarch, destPath string) error
- func DownloadTailwindCLI(version, goos, goarch, destPath string) error
- func DownloadVerifiedFromURL(name, sourceURL, archiveType, binaryName, destPath, expectedSHA256 string) error
- func DownloadVerifiedFromURLTemplate(...) error
- func DownloadVerifiedGoTool(name, module, version, goos, goarch, destPath, expectedSHA256 string) error
- func DownloadVerifiedTailwindCLI(version, goos, goarch, destPath, expectedSHA256 string) error
- func GetPlatform() (string, string)
- func RunGoFmt(targetDir string) error
- func RunGoFmtPath(targetDir, path string) error
- func RunGoModTidy(targetDir string) error
- func RunGolines(targetDir string) error
- func RunGooseFix(targetDir string) error
- func RunTemplFmt(targetDir string) error
- func RunTemplGenerate(targetDir string) error
- type ToolDownloader
Constants ¶
This section is empty.
Variables ¶
var ErrFailedToGetRleaseURL = fmt.Errorf("failed to get release URL")
ErrFailedToGetRleaseURL is returned when failed to get release URL.
Functions ¶
func DownloadFromURL ¶ added in v1.0.0
DownloadFromURL rejects downloads without integrity metadata. Use DownloadVerifiedFromURL to provide the required SHA-256 digest.
func DownloadFromURLTemplate ¶ added in v1.0.0
func DownloadFromURLTemplate( name, version, urlTemplate, archiveType, binaryName, goos, goarch, destPath string, ) error
DownloadFromURLTemplate rejects downloads without integrity metadata. Use DownloadVerifiedFromURLTemplate to provide the required SHA-256 digest.
func DownloadGoTool ¶ added in v0.37.2
DownloadGoTool rejects downloads without integrity metadata. Use DownloadVerifiedGoTool to provide the required SHA-256 digest.
func DownloadTailwindCLI ¶ added in v0.37.2
DownloadTailwindCLI rejects downloads without integrity metadata. Use DownloadVerifiedTailwindCLI to provide the required SHA-256 digest.
func DownloadVerifiedFromURL ¶ added in v1.0.0
func DownloadVerifiedFromURL(name, sourceURL, archiveType, binaryName, destPath, expectedSHA256 string) error
DownloadVerifiedFromURL downloads from a URL after verifying the expected SHA-256 digest.
func DownloadVerifiedFromURLTemplate ¶ added in v1.0.0
func DownloadVerifiedFromURLTemplate( name, version, urlTemplate, archiveType, binaryName, goos, goarch, destPath, expectedSHA256 string, ) error
DownloadVerifiedFromURLTemplate downloads from a URL template after verifying the expected SHA-256 digest.
func DownloadVerifiedGoTool ¶ added in v1.0.0
func DownloadVerifiedGoTool(name, module, version, goos, goarch, destPath, expectedSHA256 string) error
DownloadVerifiedGoTool downloads a Go tool release asset after verifying the expected SHA-256 digest.
func DownloadVerifiedTailwindCLI ¶ added in v1.0.0
DownloadVerifiedTailwindCLI downloads the Tailwind CLI after verifying the expected SHA-256 digest.
func GetPlatform ¶ added in v0.37.2
GetPlatform returns platform.
func RunGoFmtPath ¶ added in v0.38.9
RunGoFmtPath runs go fmt path.
func RunTemplGenerate ¶
RunTemplGenerate runs templ generate.
Types ¶
type ToolDownloader ¶ added in v0.37.2
ToolDownloader represents tool downloader.