Clarify import default field names
This commit is contained in:
11
lifecycle.go
11
lifecycle.go
@@ -62,7 +62,8 @@ const (
|
||||
// ImportDefaults supplies load-wide defaults for enabled import declarations.
|
||||
// Each field applies independently and an explicit declaration value takes
|
||||
// precedence. Nil boolean fields are unspecified and leave the library defaults
|
||||
// in effect: Required false, Follow true, Hidden true, and Recursive false.
|
||||
// in effect: Required false, FollowSymlinks true, IncludeHidden true, and
|
||||
// Recursive false.
|
||||
// Pattern applies to directory searches; nil leaves filenames unrestricted,
|
||||
// while a non-nil empty slice selects none. Defaults apply to main, underlay,
|
||||
// and transitive imports, not selected overlays. Load calls snapshot the
|
||||
@@ -71,10 +72,10 @@ type ImportDefaults struct {
|
||||
// Required defaults absence handling. For path, true requires every named
|
||||
// file; for dir and glob, true requires at least one selected file.
|
||||
Required *bool
|
||||
// Follow controls discovered symbolic links for directory and glob search.
|
||||
Follow *bool
|
||||
// Hidden controls discovery of hidden files and directories.
|
||||
Hidden *bool
|
||||
// FollowSymlinks controls discovered symbolic links for directory and glob search.
|
||||
FollowSymlinks *bool
|
||||
// IncludeHidden controls discovery of hidden files and directories.
|
||||
IncludeHidden *bool
|
||||
// Recursive controls descendant traversal for directory searches.
|
||||
Recursive *bool
|
||||
// Pattern replaces the library's unrestricted filename matching for directory
|
||||
|
||||
Reference in New Issue
Block a user