-
Notifications
You must be signed in to change notification settings - Fork 90
Expand file tree
/
Copy path.env.example
More file actions
136 lines (107 loc) · 3.51 KB
/
.env.example
File metadata and controls
136 lines (107 loc) · 3.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# ⚠️ THIS FILE IS NOT A REAL ENV FILE ⚠️
# IT IS USED TO CHECK SYNTAX HIGHLIGHTING IS WORKING CORRECTLY
#
# This file uses env-spec - see https://varlock.dev/env-spec for more info
# test _italic_ and *bold* and https://links.com
#
# @defaultSensitive=false @defaultRequired=false
# @decoratorFnCall(key=val, k2="asdf")
# ---
# @type=enum(development, preview, production, test)
APP_ENV=remap($WORKERS_CI_BRANCH, "main", production, regex(.*), preview, undefined, development)
# use this item below for screenshots of an example
# OpenAI API Key
# @required @sensitive @type=string(startsWith=sk-)
# @docsUrl=https://platform.openai.com/docs/api-reference/authentication
OPENAI_API_KEY=exec('op read "op://api-config-prod/openai/api-key"')
# custom environment flag
# @required @sensitive=false @type=enum('development', staging, "production")
# @another=withKeyVal(startsWith="sk_")
APP_ENV=fn(k1=true, k2="a)sdf", k3='asdf', k4="a#s", k5=`a\`s`)
APP_ENV2= a sdf #asdf
EMPTY=
# BADCOMMENT="foo" missing hashtag, bad comment
UNQUOTED=unquoted '`"\n value # comment
S_QUOTE='single quoted value' # comment
D_QUOTE="double quoted value"
B_QUOTE=`backtick quoted value` # @decorator # more @comment
D_QUOTE_ESCAPE="with \" escaped quote"
# D_QUOTE_ESCAPE_BACKSLASH="bad \\" escaped quote"
D_MULTILINE_QUOTE="
multiline without triple quote (discouraged)
"
D_MULTILINE_TRIPLE_QUOTE="""
multiline with triple quotes
""" # and a trailing comment
B_MULTILINE_TRIPLE_QUOTE=```
multiline with triple backtick quotes
``` # and a trailing comment
S_MULTILINE_QUOTE='
multiline with single quote
'
# B_MULTILINE_QUOTE=`
# mulitline backtick -- this is not allowed!
# `
REF_EXPAND_UNQUOTED=pre-${FOO}-$BAR-post
REF_EXPAND_SINGLE='pre-${FOO}-$BAR-post' # should not be highlighted!
REF_EXPAND_DOUBLE="pre-${FOO}-$BAR-post"
REF_EXPAND_BACKTICK=`pre-${FOO}-$BAR-post`
EXEC_EXPAND_UNQUOTED="pre-$(echo whoami)-post"
EXEC_EXPAND_SINGLE='pre-$(echo whoami)-post' # should not be highlighted!
EXEC_EXPAND_DOUBLE="pre-$(echo whoami)-post"
EXEC_EXPAND_BACKTICK=`pre-$(echo whoami)-post`
# check expansion highlighting within fn values
ITEM=fn(
pre-${FOO}-$BAR-post
'pre-${FOO}-$BAR-post',
"pre-${FOO}-$BAR-post",
`pre-${FOO}-$BAR-post`,
"pre-$(echo whoami)-post",
)
FN_CALL=varlock("asdlkjasd lkjasdf", 123, "werlkjwer")
FN_CALL=varlock(123, "quoted", unquoted, withtrueinside, true)
FN_CALL=varlock(123, "quoted", unquoted, true, "x")
FN_CALL=outer(true, inner(123, "asdf"))
TRUE=true
FALSE=false
TRUE_WITHIN_STR=abcundefineddeftrueghi
NUM_WITHIN_STR=hello123world
UNDEF=undefined
INT=123
DECIMAL=123.456
BADNUM1=123a
BADNUM2=123.456a
BADNUM3=123.456.789
export WITH_EXPORT=1
export WITH_EXPORT_AND_SPACES = 123
WITH.DOT=
WITH-DASH=
WITH_COMMENT=asdfkjladsf # comment
WITH_COMMENT="asdf" # comment
# ---- basic decorator tests ---
# @bareDecorator # more comment
# @shouldHighlight # and @shouldNotHighlight
# # @noHighlight
# @decorator1="with # inside" # more comment
# @decorator1=" with spaces inside " # more comment
# @undef=undefined @num=123.45 @true=true # more comment
# @unquoted=noquotes # more comment
# @type=enum('development', 'staging', 'production') # more comment#
# @d1 @d2="x" @d3=true @d4=foobar # more
ITEMX=
# basic description goes here
# @required @sensitive=false @type=enum('development', 'staging', 'production')
APP_ENV=development
# basic description goes here
# @true=true @num=123 @str=unquoted @qstr="quoted string"
APP_ENV=development
# @multiLineDec(
# a,
# b,
# c,
# )
MULTILINE_FN=outer(
a,
inner(1, 2)
b,
)