1// Code generated by cuelang.org/go/pkg/gen. DO NOT EDIT.
2
3// Package os defines tasks for retrieving os-related information.
4//
5// CUE definitions:
6//
7// // A Value are all possible values allowed in flags.
8// // A null value unsets an environment variable.
9// Value: bool | number | *string | null
10//
11// // Name indicates a valid flag name.
12// Name: !="" & !~"^[$]"
13//
14// // Setenv defines a set of command line flags, the values of which will be set
15// // at run time. The doc comment of the flag is presented to the user in help.
16// //
17// // To define a shorthand, define the shorthand as a new flag referring to
18// // the flag of which it is a shorthand.
19// Setenv: {
20// $id: _id
21// _id: "tool/os.Setenv"
22//
23// {[Name]: Value}
24// }
25//
26// // Getenv gets and parses the specific command line variables.
27// Getenv: {
28// $id: _id
29// _id: "tool/os.Getenv"
30//
31// {[Name]: Value}
32// }
33//
34// // Environ populates a struct with all environment variables.
35// Environ: {
36// $id: _id
37// _id: "tool/os.Environ"
38//
39// // A map of all populated values.
40// // Individual entries may be specified ahead of time to enable
41// // validation and parsing. Values that are marked as required
42// // will fail the task if they are not found.
43// {[Name]: Value}
44// }
45//
46// // Clearenv clears all environment variables.
47// Clearenv: {
48// $id: _id
49// _id: "tool/os.Clearenv"
50// }
51package os
52
53import (
54 "cuelang.org/go/internal/core/adt"
55 "cuelang.org/go/internal/pkg"
56)
57
58func init() {
59 pkg.Register("tool/os", 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 Value: bool | number | *string | null
68 Name: !="" & !~"^[$]"
69 Setenv: {
70 $id: _id
71 _id: "tool/os.Setenv"
72 {[Name]: Value}
73 }
74 Getenv: {
75 $id: _id
76 _id: "tool/os.Getenv"
77 {[Name]: Value}
78 }
79 Environ: {
80 $id: _id
81 _id: "tool/os.Environ"
82 {[Name]: Value}
83 }
84 Clearenv: {
85 $id: _id
86 _id: "tool/os.Clearenv"
87 }
88}`,
89}