Documentation
¶
Overview ¶
Package workspace finds the apps of a workspace: the folders under its root that hold a permission list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Discover ¶
Discover returns the absolute paths of the folders under root, root included, that hold aicoded.yaml, sorted. It resolves the symbolic links in root's path, and follows none below it. It does not look inside an app's folder, nor inside folders whose names start with . or _, or are vendor, node_modules or testdata.
func Find ¶
Find returns the folder of the app named app among the apps Discover finds under root. It refuses, with E-RPC-007, a name that no app there has, or that two have.
func SameName ¶
SameName is E-DEV-010 for the apps in the folders a and b, which are both named name.
func UnknownApp ¶
UnknownApp is E-DEV-014 for name, which no app of the workspace has; name may be any text.
Types ¶
type App ¶
type App struct{ Name, Dir string }
App is one app of a workspace: the name on the app: line of its permission list, and its folder.