@cmd('<STR_LIT>', options='<STR_LIT>')<EOL>def command_prompt(pymux, variables):
client_state = pymux.get_client_state()<EOL>if variables['<STR_LIT>']:<EOL><INDENT>client_state.prompt_text = variables['<STR_LIT>'] or '<STR_LIT>' % variables['<STR_LIT>'].split()[<NUM_LIT:0>]<EOL>client_state.prompt_command = variables['<STR_LIT>']<EOL>client_state.prompt_mode = True<EOL>client_state.prompt_buffer.reset(Document(<EOL>format_pymux_string(pymux, variables['<STR_LIT>'] or '<STR_LIT>')))<EOL>get_app().layout.focus(client_state.prompt_buffer)<EOL><DEDENT>else:<EOL><INDENT>client_state.prompt_text = '<STR_LIT>'<EOL>client_state.prompt_command = '<STR_LIT>'<EOL>get_app().layout.focus(client_state.command_buffer)<EOL><DEDENT>get_app().vi_state.input_mode = InputMode.INSERT<EOL>
Enter command prompt.