Files
pyGoEdge-UserPanel/.venv/Lib/site-packages/dotenv/__pycache__/cli.cpython-312.pyc

83 lines
10 KiB
Plaintext
Raw Normal View History

2025-11-18 03:36:49 +08:00
<EFBFBD>
g<> i%<00><00><><00>ddlZddlZddlZddlZddlmZddlmZmZm Z m
Z
m Z m Z ejdk(rddlmZ ddlZddlmZmZmZdd lmZd
e efd <0B>Zej:<00>ej<d d e<1C>ej>d<0E><0F>d<10><11>ej<dddej@gd<15><01>d<16><11>ej<dddejBd<1A><11>ejDe<1A><1B>ejFdejHdededed
df
d <20><04><00><00><00><00><00>Z%ed!ejLd
e
eefd"<22><04>Z'e%jQd#<23>$<24>ejFej<d%d&d'ej@gd(<28><01>d)<29><11>dejHd&ed
dfd*<2A><04><00><00>Z)e%jQd+<2B>$<24>ejFejTd,d<0E>-<2D>ejTd.d<0E>-<2D>dejHd,ed.ed
dfd/<2F><04><00><00><00>Z+e%jQ<00>ejFejTd,d<0E>-<2D>dejHd,ed
dfd0<64><04><00><00>Z,e%jQ<00>ejFejTd,d<0E>-<2D>dejHd,ed
dfd1<64><04><00><00>Z-e%jQd2di<01>3<EFBFBD>ejFej<d4dd5<64>6<EFBFBD>ejTd7d8ej\<00>9<EFBFBD>dejHd:e/d7e ed
dfd;<3B><04><00><00><00>Z0d<e ed=e eefd
dfd><3E>Z1y#e$r1ej$j'd<06>ej(d<07>Y<00><03>.wxYw)?<3F>N)<01>contextmanager)<06>IO<49>Any<6E>Dict<63>Iterator<6F>List<73>Optional<61>win32)<01>PopenzkIt seems python-dotenv is not installed with cli option.
Run pip install "python-dotenv[cli]" to fix this.<2E>)<03> dotenv_values<65>set_key<65> unset_key)<01> __version__<5F>returnc<00><><00> tj<00>}tjj |d<02>}|S#t$rYywxYw)zZ
Return a path for the ${pwd}/.env file.
If pwd does not exist, return None.
Nz.env)<05>os<6F>getcwd<77>FileNotFoundError<6F>path<74>join)<02>cwdrs <20>9E:\Project\pygoedge\.venv\Lib\site-packages\dotenv/cli.py<70> enumerate_envrsA<00><00> <14><10>i<EFBFBD>i<EFBFBD>k<EFBFBD><03> <0E>7<EFBFBD>7<EFBFBD><<3C><<3C><03>V<EFBFBD> $<24>D<EFBFBD> <0F>K<EFBFBD><4B> <1D><14><13><14>s<00>8<00> A<03>Az-fz--fileT)<01> file_okayzNLocation of the .env file, defaults to .env file in current working directory.)<03>default<6C>type<70>helpz-qz--quote<74>always)r<00>never<65>autozbWhether to quote or not the variable values. Default mode is always. This does not affect parsing.z-ez--exportFz;Whether to write the dot file as an executable bash script.)<01>version<6F>ctx<74>file<6C>quote<74>exportc<00><00>|||d<01>|_y)zAThis script is used to set, get or unset values from a .env file.)<03>QUOTE<54>EXPORT<52>FILEN)<01>obj)r#r$r%r&s r<00>clir,&s<00><00>4<1E><16><14>><3E>C<EFBFBD>G<EFBFBD>rc#<00><>K<00> t|<00>5}|<01><03>ddd<01>y#1swYyxYw#t$r=}td|<02><00>tj<00><03>tj
d<04>Yd}~yd}~wwxYw<01>w)z~
Open a file and yield the corresponding (decoded) stream.
Exits with error code 2 if the file cannot be opened.
NzError opening env file: )r$<00>)<06>open<65>OSError<6F>print<6E>sys<79>stderr<72>exit)r<00>stream<61>excs r<00> stream_filer8CsT<00><00><><00><14> <11>$<24>Z<EFBFBD>6<EFBFBD><18>L<EFBFBD><18>Z<EFBFBD>Z<EFBFBD><5A> <12><14> <0A>(<28><13><05>.<2E>S<EFBFBD>Z<EFBFBD>Z<EFBFBD>@<40> <0B><08><08><11> <0B> <0B><><14>sC<00>A2<01> )<00><03>)<00>A2<01>&<07>)<00>A2<01>)<00> A/<03>3A*<03>%A2<01>*A/<03>/A2<01>list)<01>namez--format<61> output_format<61>simple)r<<00>json<6F>shellr&zlThe format in which to display the list. Default format is simple, which displays name=value without quotes.c<00><><00>|jd}t|<02>5}t|<03><02>}ddd<03>|dk(r,tjt j dd<06><07><00>y|dk(rd nd
}t<04>D]?}||}|<07><01> |d vrtj|<07>}tj|<05>|<06>d |<07><00><04><00>Ay#1swY<00><>xYw) z!Display all the stored key/value.r*<00>r6Nr=r/T)<02>indent<6E> sort_keysr&zexport <20>)r&r><00>=)
r+r8r <00>click<63>echor=<00>dumps<70>sorted<65>shlexr%)r#r;r$r6<00>values<65>prefix<69>k<>vs r<00> list_valuesrNSs<><00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A>f<EFBFBD><1E>f<EFBFBD>-<2D><06>
<1B><15><06><1E> <0A>
<EFBFBD>
<EFBFBD>4<EFBFBD>:<3A>:<3A>f<EFBFBD>Q<EFBFBD>$<24>?<3F>@<40>+<2B>x<EFBFBD>7<><19>R<EFBFBD><06><17><06><1E>A<EFBFBD><16>q<EFBFBD> <09>A<EFBFBD><10>}<7D> <20>$7<>7<><1D> <0B> <0B>A<EFBFBD><0E>A<EFBFBD><15>
<EFBFBD>
<EFBFBD>f<EFBFBD>X<EFBFBD>a<EFBFBD>S<EFBFBD><01>!<21><13>-<2D>.<2E>  <20>
<1B> <1A>s <00> B8<03>8C<07>set<65>key)<01>required<65>valuec<00><><00>|jd}|jd}|jd}t|||||<05>\}}}|rtj|<01>d|<02><00><03>yt j
d<05>y)zStore the given key/value.r*r(r)rDr N)r+rrErFr3r5)r#rPrRr$r%r&<00>successs r<00> set_valuerUpsk<00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD> <10>W<EFBFBD>W<EFBFBD>X<EFBFBD> <1E>F<EFBFBD>!<21>$<24><03>U<EFBFBD>E<EFBFBD>6<EFBFBD>B<><17>G<EFBFBD>S<EFBFBD>%<25><0E> <0A>
<EFBFBD>
<EFBFBD>c<EFBFBD>U<EFBFBD>!<21>E<EFBFBD>7<EFBFBD>#<23>$<24> <0B><08><08><11> r-c<00><><00>|jd}t|<02>5}t|<03><02>}ddd<03>j|<01>}|rt j
|<05>yt jd<04>y#1swY<00>HxYw)z%Retrieve the value for the given key.r*r@Nr )r+r8r <00>getrErFr3r5)r#rPr$r6rJ<00> stored_values rrWrW<00>s\<00><00>
<0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <14>T<EFBFBD> <1A>f<EFBFBD><1E>f<EFBFBD>-<2D><06>
<1B><1A>:<3A>:<3A>c<EFBFBD>?<3F>L<EFBFBD><13> <0A>
<EFBFBD>
<EFBFBD><<3C> <20> <0B><08><08><11> <0B>
<1B> <1A>s <00> A/<03>/A8c<00><><00>|jd}|jd}t|||<03>\}}|rtjd|<01><00><02>yt j
d<04>y)zRemoves the given key.r*r(zSuccessfully removed r N)r+rrErFr3r5)r#rPr$r%rTs r<00>unsetrZ<00>sS<00><00>
<0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0F>G<EFBFBD>G<EFBFBD>G<EFBFBD> <1C>E<EFBFBD><1C>T<EFBFBD>3<EFBFBD><05>.<2E>L<EFBFBD>G<EFBFBD>S<EFBFBD><0E> <0A>
<EFBFBD>
<EFBFBD>*<2A>3<EFBFBD>%<25>0<>1<> <0B><08><08><11> r-<00>ignore_unknown_options)<01>context_settingsz--override/--no-overridezKOverride variables from the environment file with those from the .env file.)rr<00> commandline<6E><65><EFBFBD><EFBFBD><EFBFBD>)<02>nargsr<00>overridec<00><><00>|jd}tjj|<03>st j
d|<03>d<03>|<00><04><00>t |<03>j<00>D<00><04>cic]\}}|<05>|s|tjvr||<05><02> }}}|s*t jd<06>tjd<07>t||<06>ycc}}w)z/Run command with environment variables present.r*zInvalid value for '-f' "z" does not exist.)r#NzNo command given.r ) r+rr<00>isfilerE<00> BadParameterr <00>items<6D>environrFr3r5<00> run_command)r#r`r]r$rLrM<00>dotenv_as_dicts r<00>runrh<00>s<><00><00> <0F>7<EFBFBD>7<EFBFBD>6<EFBFBD>?<3F>D<EFBFBD> <0A>7<EFBFBD>7<EFBFBD>><3E>><3E>$<24> <1F><13> <20> <20>'<27><04>v<EFBFBD>-?<3F> @<40>c<EFBFBD>
<EFBFBD>
<EFBFBD>
$<24>D<EFBFBD>)<29>/<2F>/<2F>1<><06>1<>F<EFBFBD>Q<EFBFBD><01> <0C>=<3D>h<EFBFBD>!<21>2<EFBFBD>:<3A>:<3A>*=<3D>
<EFBFBD>1<EFBFBD><04>1<><13><06> <17> <0A>
<EFBFBD>
<EFBFBD>&<26>'<27> <0B><08><08><11> <0B><0F> <0B>^<5E>,<2C><>s<00>&#C<06>command<6E>envc<00>D<00>tjj<00>}|j|<01>tj
dk(rCt |ddd|<02><05>}|j<00>\}}t j|j<00>ytj|d||<02><06>y)a<>Replace the current process with the specified command.
Replaces the current process with the specified command and the variables from `env`
added in the current environment variables.
Parameters
----------
command: List[str]
The command and it's parameters
env: Dict
The additional environment variables
Returns
-------
None
This function does not return any value. It replaces the current process with the new one.
r
TrF)<04>universal_newlines<65>bufsizer>rj)<02>argsrjN) rre<00>copy<70>updater3<00>platformr <00> communicater5<00>
returncode<EFBFBD>execvpe)rirj<00>cmd_env<6E>p<>_s rrfrf<00>st<00><00>*<11>j<EFBFBD>j<EFBFBD>o<EFBFBD>o<EFBFBD><1F>G<EFBFBD> <0B>N<EFBFBD>N<EFBFBD>3<EFBFBD><17>
<EFBFBD>|<7C>|<7C>w<EFBFBD><1E> <12>'<27>d<EFBFBD>A<EFBFBD>U<EFBFBD>PW<50> X<><01><10>}<7D>}<7D><EFBFBD><04><01>1<EFBFBD> <0B><08><08><11><1C><1C><1E>
<EFBFBD>
<EFBFBD>
<EFBFBD>7<EFBFBD>1<EFBFBD>:<3A>G<EFBFBD><17>9r-)2r=rrIr3<00>
contextlibr<00>typingrrrrrr rq<00>
subprocessr rE<00> ImportErrorr4<00>writer5<00>mainr rrr"r<00>strr<00>group<75>option<6F>Path<74>Choice<63>BOOL<4F>version_option<6F> pass_context<78>Contextr,<00>PathLiker8rirN<00>argumentrUrWrZ<00> UNPROCESSED<45>boolrhrf<00>r-r<00><module>r<>s<><00><01> <0B> <09> <0C>
<EFBFBD>%<25>:<3A>:<3A><06><<3C><<3C>7<EFBFBD><1A> <20><10><10>4<>3<> <20> <10>x<EFBFBD><03>}<7D> <10> <0A><15><1B><1B><1D> <0A><15><1C><1C><08> <0C> <19>O<EFBFBD> <13><15><1A><1A>d<EFBFBD> #<23> Y<> <02><0E><15><1C><1C><08> <0A> <14> <15><15><1C><1C>1<> 2<> m<> <02><0E><15><1C><1C><08><0E> <11> <0E><1A><1A> F<> <02><16><15><15><15>k<EFBFBD>*<2A><06><13><13>?<3F>U<EFBFBD>]<5D>]<5D>?<3F>#<23>?<3F>c<EFBFBD>?<3F>3<EFBFBD>?<3F>4<EFBFBD>?<3F><14>+<2B><02><02><02><0F>0?<3F>
<10> <14>b<EFBFBD>k<EFBFBD>k<EFBFBD> <14>h<EFBFBD>r<EFBFBD>#<23>w<EFBFBD>&7<> <14><10> <14><05><1B><1B>&<26><1B><19><06><13><13> <0A><15><1C><1C><0E><13> <14> <15><15><1C><1C>;<3B> <<3C>
0<EFBFBD> <02>/<2F>U<EFBFBD>]<5D>]<5D>/<2F>3<EFBFBD>/<2F>4<EFBFBD>/<2F><02><14><1A>/<2F>&<05><1B><1B>%<25><1B><18><06><13><13><0F><15><1E><1E><05><04>%<25><0F><15><1E><1E><07>$<24>'<27> <14>5<EFBFBD>=<3D>=<3D> <14>s<EFBFBD> <14>3<EFBFBD> <14>4<EFBFBD> <14>(<28>&<26><14><19> <14><05><1B><1B><1D><06><13><13><0F><15><1E><1E><05><04>%<25> <14>U<EFBFBD>]<5D>]<5D> <14><13> <14><14> <14>&<26><14><0F> <14><05><1B><1B><1D><06><13><13><0F><15><1E><1E><05><04>%<25><14>u<EFBFBD>}<7D>}<7D><14>3<EFBFBD><14>4<EFBFBD><14>&<26><14><0F><14><05><1B><1B>7<><14>><3E><1B>?<3F><06><13><13> <0A><15><1C><1C><1E> <10> V<><02>
<10><15><1E><1E> <0A>R<EFBFBD>e<EFBFBD>.?<3F>.?<3F>@<40>-<2D>U<EFBFBD>]<5D>]<5D>-<2D>d<EFBFBD>-<2D><14>c<EFBFBD><19>-<2D>t<EFBFBD>-<2D>A<01> <02><14>@<01>-<2D>& :<3A><14>c<EFBFBD><19> :<3A><14>c<EFBFBD>3<EFBFBD>h<EFBFBD><1E> :<3A>D<EFBFBD> :<3A><>[<13><10><07>J<EFBFBD>J<EFBFBD><14><14> <<3C><06> <0A>C<EFBFBD>H<EFBFBD>H<EFBFBD>Q<EFBFBD>K<EFBFBD> <10>s<00>L:<00>:2M0<03>/M0