workspace

package
v1.16.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SpeakeasyFolder = ".speakeasy"
	GenFolder       = ".gen"
)

Variables

This section is empty.

Functions

func FindWorkspaceTempDir

func FindWorkspaceTempDir(wd string, opts FindWorkspaceOptions) string

Types

type FS

type FS interface {
	fs.StatFS
}

type FindWorkspaceOptions

type FindWorkspaceOptions struct {
	FindFile     string // An optional file to find in the workspace
	AllowOutside bool   // Allow searching outside the workspace
	Recursive    bool   // Recursively search for the workspace in parent directories
	FS           FS     // An optional filesystem to use
}

type FindWorkspaceResult

type FindWorkspaceResult struct {
	Data []byte
	Path string
}

func FindWorkspace

func FindWorkspace(workingDir string, opts FindWorkspaceOptions) (*FindWorkspaceResult, error)

Jump to

Keyboard shortcuts

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