Documentation ¶
Index ¶
- func GitRoot(dir string) optional.Option[string]
- func ScaffoldZip(source *zip.Reader, destination string, ctx any, options ...scaffolder.Option) error
- func UnzipDir(zipReader *zip.Reader, destDir string) error
- func ZipDir(srcDir, destZipFile string) error
- func ZipRelativeToCaller(relativePath string) *zip.Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitRoot ¶ added in v0.130.0
GitRoot returns the root of the git repository containing dir, or empty string if dir is not in a git repository.
If dir is empty, the current working directory is used.
func ScaffoldZip ¶ added in v0.96.0
func ScaffoldZip(source *zip.Reader, destination string, ctx any, options ...scaffolder.Option) error
ScaffoldZip is a convenience function for scaffolding a zip archive with scaffolder.
func ZipRelativeToCaller ¶ added in v0.58.4
ZipRelativeToCaller creates a temporary zip file from a path relative to the caller.
This function will leak a file descriptor and thus can only be used in development.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package automaxprocs sets GOMAXPROCS to match Linux container CPU quota.
|
Package automaxprocs sets GOMAXPROCS to match Linux container CPU quota. |
Package buildengine provides a framework for building FTL modules.
|
Package buildengine provides a framework for building FTL modules. |
Package configuration is the FTL configuration and secret management API.
|
Package configuration is the FTL configuration and secret management API. |
Package goast provides a useful visitor for the Go AST.
|
Package goast provides a useful visitor for the Go AST. |
Code generated by 'just lsp-generate'.
|
Code generated by 'just lsp-generate'. |
internal
Package internal manages the persistent profile configuration of the FTL CLI.
|
Package internal manages the persistent profile configuration of the FTL CLI. |
schema
|
|
Click to show internal directories.
Click to hide internal directories.