Documentation
¶
Index ¶
- Constants
- func CheckFileExists(path string) error
- func CopyFileFromFS(fsys fs.FS, srcPath, destPath string) error
- func CopyFileIfExists(fsys fs.FS, srcPath, destPath string) (bool, error)
- func FileMustNotExist(path string) error
- func FindGoExecutable() (string, error)
- func GetAppModTime(appPath string) (time.Time, error)
- func GetAppName(appPath string) string
- func IsDirOrNotFound(path string) error
- func MakeAppPackage(appFS fs.FS, appPath string, verbose bool, outputFile string) error
- func ParseTsunamiPort(line string) int
- func TsunamiBuild(opts BuildOpts) error
- func TsunamiRun(opts BuildOpts) error
- type BuildEnv
- type BuildOpts
- type CopyStats
- type DirFS
- type GoVersionCheckResult
- type OutputCapture
Constants ¶
View Source
const AppInitFnName = "AppInit"
View Source
const MainAppFileName = "app.go"
View Source
const MinSupportedGoMinorVersion = 22
View Source
const TsunamiUIImportPath = "github.com/wavetermdev/waveterm/tsunami/ui"
Variables ¶
This section is empty.
Functions ¶
func CheckFileExists ¶
func FileMustNotExist ¶
func FindGoExecutable ¶ added in v0.12.3
func GetAppName ¶
func IsDirOrNotFound ¶
func MakeAppPackage ¶
func ParseTsunamiPort ¶
func TsunamiBuild ¶
func TsunamiRun ¶
Types ¶
type BuildEnv ¶
type BuildEnv struct {
GoVersion string
GoPath string
TempDir string
// contains filtered or unexported fields
}
func TsunamiBuildInternal ¶
type GoVersionCheckResult ¶ added in v0.12.3
type GoVersionCheckResult struct {
GoStatus string
GoPath string
GoVersion string
ErrorString string
}
func CheckGoVersion ¶ added in v0.12.3
func CheckGoVersion(customGoPath string) GoVersionCheckResult
type OutputCapture ¶
type OutputCapture struct {
// contains filtered or unexported fields
}
func MakeOutputCapture ¶
func MakeOutputCapture() *OutputCapture
func (*OutputCapture) Flush ¶ added in v0.12.3
func (oc *OutputCapture) Flush()
func (*OutputCapture) GetLines ¶
func (oc *OutputCapture) GetLines() []string
func (*OutputCapture) Printf ¶
func (oc *OutputCapture) Printf(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.