Files
tamigo-cli/venv/lib/python3.12/site-packages/questionary/__pycache__/prompt.cpython-312.pyc

107 lines
8.6 KiB
Plaintext
Raw Normal View History

<EFBFBD>
<00><16>i!!<00><00>|<00>ddlmZddlmZddlmZddlmZddlmZddlmZddlmZddl m
Z
dd l m Z dd
l mZdd l mZdd lmZGd <0A>de<12>Zddde fdeeeefeeeeffdeeeefdededededeeeffd<18>Z ddeeeefeeeeffdeeeefdedededeeeff d<19>Zy)<1B>)<01>Any)<01>Dict)<01>Iterable)<01>Mapping)<01>Optional)<01>Union)<01>
ColorDepth)<01>utils)<01>DEFAULT_KBI_MESSAGE)<01>AVAILABLE_PROMPTS)<01>prompt_by_name)<01>print_formatted_textc<00>8<00><00>eZdZdZddedeeddf<06>fd<06> Z<07>xZS)<08>PromptParameterExceptionz+Received a prompt with a missing parameter.N<>message<67>errors<72>returnc<00>.<00><01>t<00>|<00>d|<01>d<02>|<02>y)NzYou must provide a `z` value)<02>super<65>__init__)<04>selfrr<00> __class__s <20><>X/home/daniel/Projects/tamigo-cli/venv/lib/python3.12/site-packages/questionary/prompt.pyrz!PromptParameterException.__init__s<00><><00> <0A><07><18>/<2F><07>y<EFBFBD><07>@<40>&<26>I<>)N) <09>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__<5F>strr<00> BaseExceptionr<00> __classcell__)rs@rrrs0<00><><00>5<>J<01><03>J<01>X<EFBFBD>m<EFBFBD>-D<>J<01>PT<50>J<01>JrrNF<4E> questions<6E>answers<72> patch_stdout<75>
true_color<EFBFBD>kbi_msg<73>kwargsrc <00>Z<00> t||||fi|<05><01>S#t$rt|<04>icYSwxYw)a<>Prompt the user for input on all the questions.
Catches keyboard interrupts and prints a message.
See :func:`unsafe_prompt` for possible question configurations.
Args:
questions: A list of question configs representing questions to
ask. A question config may have the following options:
* type - The type of question.
* name - An ID for the question (to identify it in the answers :obj:`dict`).
* when - Callable to conditionally show the question. This function
takes a :obj:`dict` representing the current answers.
* filter - Function that the answer is passed to. The return value of this
function is saved as the answer.
Additional options correspond to the parameter names for
particular question types.
answers: Default answers.
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
kbi_msg: The message to be printed on a keyboard interrupt.
true_color: Use true color output.
color_depth: Color depth to use. If ``true_color`` is set to true then this
value is ignored.
type: Default ``type`` value to use in question config.
filter: Default ``filter`` value to use in question config.
name: Default ``name`` value to use in question config.
when: Default ``when`` value to use in question config.
default: Default ``default`` value to use in question config.
kwargs: Additional options passed to every question.
Returns:
Dictionary of question answers.
)<03> unsafe_prompt<70>KeyboardInterrupt<70>print)r"r#r$r%r&r's r<00>promptr,s9<00><00>h<12><1C>Y<EFBFBD><07><1C>z<EFBFBD>T<>V<EFBFBD>T<>T<><54> <1C><12> <0A>g<EFBFBD><0E><11> <09><12>s <00><00>*<03>*c <00>t<00>t|t<00>r|g}t|xsi<00>}|D<00>],}t|<05>}d|vr td<01><00>d|vr|ddk7r td<02><00>|j<00>}|j |<05>|j d<01>}|j dd<05>}|dk(r|j dd<05>n|j d<02>} |j dd<05>}
|rt j|d<|
r't|d<00>r |d|<01>s<01><>n td
<EFBFBD><00>|dk(r9 |j d <0B>} |j d d<05>t| fi|<06><01>| rd|| <<00><01>/|jd <0A>}|<0E>t|<0E>r||<01>}||d <||d <|rt|<08>s td<0E><00>t|jd<0F><00>r|d|<01>|d<t|<07>}|s%td|<07>ddjt <00><00>d<13><05><00>t#t%j&||<06><00>}|rt|d<00><00>|di|<06><01>}|j)|<02>}|<13><02><02>|r ||<13>}||| <<00><02>/|S#t$r} td| <09>d | <0B><00><04>| <0B>d} ~ wwxYw#t$r} td <0B>| <0A>d} ~ wwxYw#t$r} td| <09>d | <0B><00><04>| <0B>d} ~ wwxYw)a<>Prompt the user for input on all the questions.
Won't catch keyboard interrupts.
Args:
questions: A list of question configs representing questions to
ask. A question config may have the following options:
* type - The type of question.
* name - An ID for the question (to identify it in the answers :obj:`dict`).
* when - Callable to conditionally show the question. This function
takes a :obj:`dict` representing the current answers.
* filter - Function that the answer is passed to. The return value of this
function is saved as the answer.
Additional options correspond to the parameter names for
particular question types.
answers: Default answers.
patch_stdout: Ensure that the prompt renders correctly if other threads
are printing to stdout.
true_color: Use true color output.
color_depth: Color depth to use. If ``true_color`` is set to true then this
value is ignored.
type: Default ``type`` value to use in question config.
filter: Default ``filter`` value to use in question config.
name: Default ``name`` value to use in question config.
when: Default ``when`` value to use in question config.
default: Default ``default`` value to use in question config.
kwargs: Additional options passed to every question.
Returns:
Dictionary of question answers.
Raises:
KeyboardInterrupt: raised on keyboard interrupt
<20>type<70>namer+<00>filterN<72>when<65> color_depthzProblem in 'when' check of z question: z8'when' needs to be function that accepts a dict argumentr<00>input<75>choicesz6'filter' needs to be function that accepts an argument<6E>defaultzNo question type 'z"' found. Known question types are z, <20>.rzProblem processing 'filter' of <20>)<15>
isinstance<EFBFBD>dictr<00>copy<70>update<74>popr <00>
TRUE_COLOR<EFBFBD>callable<6C> Exception<6F>
ValueError<EFBFBD>KeyErrorr<00>getr <00>joinr <00>listr
<00>missing_arguments<74>
unsafe_ask)r"r#r$r%r'<00>question_config<69>_kwargs<67>_type<70>_filterr/r1<00> exceptionr<00>er4<00>calculated_choices<65>create_question_func<6E> missing_args<67>question<6F>answers rr)r)Ts6<00><00>f<12>)<29>T<EFBFBD>"<22><1E>K<EFBFBD> <09><12>7<EFBFBD>=<3D>b<EFBFBD>!<21>G<EFBFBD>$<24>\#<23><0F><1E><EFBFBD>/<2F><0F> <11><1F> (<28>*<2A>6<EFBFBD>2<> 2<> <11><1F> (<28>_<EFBFBD>V<EFBFBD>-D<><07>-O<>*<2A>6<EFBFBD>2<> 2<><18>+<2B>+<2B>-<2D><07><0F><0E><0E><EFBFBD>'<27><17> <0B> <0B>F<EFBFBD>#<23><05><19>+<2B>+<2B>h<EFBFBD><04>-<2D><07>,1<>W<EFBFBD>,<<3C>w<EFBFBD>{<7B>{<7B>6<EFBFBD>4<EFBFBD>(<28>'<27>+<2B>+<2B>f<EFBFBD>BU<42><04><16>{<7B>{<7B>6<EFBFBD>4<EFBFBD>(<28><04> <15>%/<2F>%:<3A>%:<3A>G<EFBFBD>M<EFBFBD> "<22> <0F><17><0F><06>/<2F>0<>%<25>2<>?<3F>6<EFBFBD>2<>7<EFBFBD>;<3B> <20><<3C>!<21>N<><12><12>
<11>G<EFBFBD> <1B> A<01>!<21>+<2B>+<2B>i<EFBFBD>0<><07> <14>K<EFBFBD>K<EFBFBD><07><14> &<26> <20><17> 4<>G<EFBFBD> 4<><13> $<24><07><04> <0A> <14>!<21>%<25>%<25>i<EFBFBD>0<><07> <12> <1E>8<EFBFBD>G<EFBFBD>#4<>!(<28><17>!1<> <1E>);<3B>O<EFBFBD>I<EFBFBD> &<26> 2<>F<EFBFBD>9<EFBFBD> <1D> <12><1B>G<EFBFBD>$<24> <20>L<><12><12> <14>O<EFBFBD>'<27>'<27> <09>2<> 3<>!;<3B><1F><19>!;<3B>G<EFBFBD>!D<>G<EFBFBD>I<EFBFBD> <1E>-<2D>e<EFBFBD>4<><1C>#<23><1C>$<24>U<EFBFBD>G<EFBFBD>,,<2C>,0<>I<EFBFBD>I<EFBFBD>6G<36>,H<>+I<><11>L<01><0E> <0E>
<1C>E<EFBFBD>3<>3<>4H<34>'<27>R<>S<> <0C> <17>*<2A><<3C><01>?<3F>;<3B> ;<3B>'<27>2<>'<27>2<><08><19>$<24>$<24>\<5C>2<><06> <11> <1D><16>%<25>$<24>V<EFBFBD>_<EFBFBD>F<EFBFBD> #<23>G<EFBFBD>D<EFBFBD>M<EFBFBD>y\#<23>| <13>N<EFBFBD><4E>I!<21>%<25>$<24>5<>$<24><16>{<7B>9<EFBFBD>+<2B>V<><16>$<24>%<25><>%<25><><1C> A<01>.<2E>y<EFBFBD>9<>q<EFBFBD>@<40><> A<01><>`!<21>%<25>$<24>9<>$<24><16>@%<25>%.<2E>K<EFBFBD>1<><16>%<25>%<25><>%<25>sH<00>> I<02>I:<02>J<02> I7<05> I2<05>2I7<05>: J<05> J<05>J<05> J7<05> J2<05>2J7)NFF)<18>typingrrrrrr<00>prompt_toolkit.outputr <00> questionaryr
<00>questionary.constantsr <00>questionary.promptsr r <00>questionary.prompts.commonrr@rr<00>boolr,r)r7rr<00><module>rYsH<00><01><16><17><1B><1A><1B><18>,<2C><1D>5<>1<>.<2E>;<3B>J<01>z<EFBFBD>J<01>,0<><1E><1C>&<26> 8<12><14>T<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>X<EFBFBD>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>.?<3F>%@<40>@<40>A<>8<12> <15>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>'<27> (<28>8<12><17>8<12><15> 8<12>
<11> 8<12> <12> 8<12>
<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>8<12>z,0<><1E><1C> V<13><14>T<EFBFBD>#<23>s<EFBFBD>(<28>^<5E>X<EFBFBD>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>.?<3F>%@<40>@<40>A<>V<13> <15>g<EFBFBD>c<EFBFBD>3<EFBFBD>h<EFBFBD>'<27> (<28>V<13><17>V<13><15> V<13>
<12> V<13> 
<EFBFBD>#<23>s<EFBFBD>(<28>^<5E> Vr