Jas*_*sch 5

我已经在邮件列表的Fabric中为这个功能提出了一个API,最后我自己写了一些东西:

from fexpect import expect, expecting, run 

prompts = []
prompts += expect('What is your name?','John')
prompts += expect('Where do you live?','New York')

with expecting(prompts):
    run('command')
Run Code Online (Sandbox Code Playgroud)

请参阅我的博客文章,期待面料中的提示与fexpect


Flo*_*ann 4

Fabric 1.0 终于支持与远程服务器的交互。详情请参阅本页。