github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/pkg/tool/file/pkg.go (about) 1 // Code generated by go generate. DO NOT EDIT. 2 3 //go:generate rm pkg.go 4 //go:generate go run ../../gen/gen.go 5 6 package file 7 8 import ( 9 "github.com/joomcode/cue/internal/core/adt" 10 "github.com/joomcode/cue/pkg/internal" 11 ) 12 13 func init() { 14 internal.Register("tool/file", pkg) 15 } 16 17 var _ = adt.TopKind // in case the adt package isn't used 18 19 var pkg = &internal.Package{ 20 Native: []*internal.Builtin{}, 21 CUE: `{ 22 Read: { 23 $id: "tool/file.Read" 24 filename: !="" 25 contents: *bytes | string 26 } 27 Append: { 28 $id: "tool/file.Append" 29 filename: !="" 30 permissions: int | *438 31 contents: bytes | string 32 } 33 Create: { 34 $id: "tool/file.Create" 35 filename: !="" 36 permissions: int | *438 37 contents: bytes | string 38 } 39 Glob: { 40 $id: "tool/file.Glob" 41 glob: !="" 42 files: [...string] 43 } 44 Mkdir: { 45 $id: "tool/file.Mkdir" 46 path: string 47 createParents: bool | *false 48 permissions: int | *493 49 } 50 MkdirAll: Mkdir & { 51 createParents: true 52 } 53 MkdirTemp: { 54 $id: "tool/file.MkdirTemp" 55 dir: string | *"" 56 pattern: string | *"" 57 path: string 58 } 59 RemoveAll: { 60 $id: "tool/file.RemoveAll" 61 path: string 62 success: bool 63 } 64 }`, 65 }