Skip to main content

Module interactive

Module interactive 

Source
Expand description

Asking for what visdom init was not told on the command line. Only ever used when both stdin and stderr are a terminal; without one, init behaves as if nothing could be asked and says what to pass instead.

Enums§

InitScope
What visdom init sets up.
UrlAnswer
What a typed URL answer means.

Functions§

ask_agent
Ask which agent to set up. End of input takes the default.
ask_choice
Ask for one of options. None at end of input, or with nothing to choose from.
ask_mode
Ask how sessions should be traced. None at end of input: nothing chosen.
ask_scope
Ask what to set up. None at end of input: nothing chosen.
ask_text
Ask for a line of text; None when nothing was typed.
ask_url
Ask for a URL until one is given or the question is skipped (Enter, or end of input).
is_interactive
Whether there is somebody to ask.
parse_agent_choice
The agent an answer names: its number in the list, or its name. An empty answer takes the default, Claude Code. None when it names neither.
parse_choice
The entry of a list of count an answer names by its number, from 1.
parse_mode_choice
The mode an answer names: its number in the list, or its name. An empty answer takes the default, hooks. None when it names neither.
parse_scope_choice
The scope an answer names: its number in the list, or its name. An empty answer takes default. None when it names none.
parse_url_answer
A bare host is taken as https; anything that is then not an absolute http(s) URL is invalid.
save_bazaar_url
Record bazaar_url in the user config at path, creating the file if needed and leaving everything else in it as it is.
save_gateway_setting
Record key under [gateway] in the user config at path, creating the file if needed. A file with no [gateway] table gets one at its end and is otherwise kept byte for byte; one that has it is rewritten from its parsed form.
save_tracing_mode
Record tracing_mode in the user config at path, the same way.