我不需要帮助手动将fab命令转换为bash.我正在寻找一种程序化的方法来捕获命令流,无论是来自paramiko还是Fabric还是远程主机本身.
解决方法 你写了:If I Could give them a bash script that is a record of what the varIoUs fabfiles dID then that would be great.
然后
I don’t need help to manually translate fab commands into bash. I’m looking for a programatic way to capture the stream of commands,either from paramiko or fabric or on the remote host itself.
将您的问题消除歧义以包括示例fab文件和所需输出将非常有帮助.
那就是说,你在博士中看到了吗?如果COMMAND是占位符或文字,我找不到提到它的地方,它似乎是一个占位符. (我可能完全误解了选项的意图,fab文档,请更多示例!)
-d COMMAND,--display=COMMANDPrints the entire docstring for the given task,if there is one. Does not currently print out the task’s function signature,so descriptive docstrings are a good IDea. (They’re always a good IDea,of course – just moreso here.)
但听起来你可以通过将完整的命令插入docstring来获得你想要的东西.
我希望这有帮助.
总结以上是内存溢出为你收集整理的python – 有没有办法捕获结构输出的shell命令集合?全部内容,希望文章能够帮你解决python – 有没有办法捕获结构输出的shell命令集合?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)