this repo has no description
at master 80 lines 2.7 kB view raw
1// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT. 2 3// Package exec defines tasks for running commands. 4// 5// These are the supported tasks: 6// 7// // Run executes a program with the given arguments. 8// Run: { 9// $id: _id 10// _id: *"tool/exec.Run" | "exec" // exec for backwards compatibility 11// 12// // cmd is a non-empty list holding the program name to run 13// // and the arguments to be passed to it. 14// // 15// // Simple commands can use a string, which is split by white space characters. 16// // If any arguments include white space, or for clarity, use the list form. 17// cmd: string | [string, ...string] 18// 19// // dir specifies the working directory of the command. 20// // The default is the current working directory. 21// dir?: string 22// 23// // env defines the environment variables to use for this system. 24// // If the value is a list, the entries mus be of the form key=value, 25// // where the last value takes precendence in the case of multiple 26// // occurrances of the same key. 27// env: {[string]: string} | [...=~"="] 28// 29// // stdout captures the output from stdout if it is of type bytes or string. 30// // The default value of null indicates it is redirected to the stdout of the 31// // current process. 32// stdout: *null | string | bytes 33// 34// // stderr is like stdout, but for errors. 35// stderr: *null | string | bytes 36// 37// // stdin specifies the input for the process. If stdin is null, the stdin 38// // of the current process is redirected to this command (the default). 39// // If it is of typ bytes or string, that input will be used instead. 40// stdin: *null | string | bytes 41// 42// // success is set to true when the process terminates with a zero exit 43// // code or false otherwise. The user can explicitly specify the value 44// // force a fatal error if the desired success code is not reached. 45// success: bool 46// 47// // mustSucceed indicates whether a command must succeed, in which case success==false results in a fatal error. 48// // This option is enabled by default, but may be disabled to control what is done when a command execution fails. 49// mustSucceed: bool | *true 50// } 51package exec 52 53import ( 54 "cuelang.org/go/internal/core/adt" 55 "cuelang.org/go/internal/pkg" 56) 57 58func init() { 59 pkg.Register("tool/exec", p) 60} 61 62var _ = adt.TopKind // in case the adt package isn't used 63 64var p = &pkg.Package{ 65 Native: []*pkg.Builtin{}, 66 CUE: `{ 67 Run: { 68 $id: _id 69 _id: *"tool/exec.Run" | "exec" 70 cmd: string | [string, ...string] 71 dir?: string 72 env: {[string]: string} | [...=~"="] 73 stdout: *null | string | bytes 74 stderr: *null | string | bytes 75 stdin: *null | string | bytes 76 success: bool 77 mustSucceed: bool | *true 78 } 79}`, 80}