实时编码演示的助手:当您按下快捷键时,将为您键入命令的终端包装器
liecoding的Python项目详细描述
列支敦士登是一个实时编码演示的辅助工具。列支敦士登是一个中间选项,它将使用原始程序,但在按下按钮时为您键入输入,而不必从内存中键入命令或显示视频。
您只需安装列支敦士登,并提供一个简单的文件,列出您将不得不输入的命令。按下一个按钮,列支敦登进入下一个输入。
示例会话文件
会话文件是列出输入的yaml文件。还可以执行一些其他操作,比如打印假输出、自定义键入速度等等。
# A session contains multiple shortcuts that are triggered through Ctrl-Tshortcuts:# Shortcuts are ordered, starting at the first input and advancing through# the list each time 'Ctrl-T t' is used# Each input also has a name, which is used to quickly jump somewhere in the# list using 'Ctrl-T d <name><enter>'# A shortcut only needs the input to type for you# By default, slow=true which means that the input will be entered slowly, as# if typed on the keyboard-hello:-input:"echo\"Hello,world\""# Another command. Note that for it to be run directly, a \n has to be added-exit:-input:"exit\n"