Fabric命令的打印结果
我想重定向 Fabric 命令的输出
print local("git add .")
,以便确保一切正常工作。有没有办法将此命令的结果传输到控制台?谢谢!
I would like to redirect the output of the Fabric command
print local("git add .")
so that I make sure that everything is working properly. Is there a way to pipe the results of this command to the console? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该已经在控制台中看到该命令的输出,因为这是默认行为。如果您需要自定义它,请查看管理输出 文档部分。
除此之外,我们正在努力使用
logging
模块(issue #57 )应该提供更多选项,例如记录到文件,但尚未合并到主干分支中。You should already see the output of the command in the console since that's the default behaviour. If you need to customize it, please have a look at the managing output documentation section.
Besides this, there's an ongoing effort to use the
logging
module (issue #57) that should provide more options like logging to a file, but that hasn't been merged into the trunk branch yet.