叮当小猪
I've been working with beefy virtual machines, docker containers, and build processes lately. Believe it or not, working on projects aimed at making Mozilla developers more productive can mean executing code that can take anywhere from a minute to an hour, which in itself can hit how productive I can be. For the longer tasks, I often get away from my desk, make a cup of coffee, and check in to see how the rest of the Walsh clan is doing.
最近,我一直在使用强大的虚拟机,Docker容器和构建流程。 信不信由你,从事旨在提高Mozilla开发人员生产力的项目可能意味着执行代码可能需要一分钟到一个小时的时间,这本身可能会影响我的生产力。 对于较长的任务,我经常离开办公桌,喝杯咖啡,然后检查一下沃尔什氏族的其他成员的工作状况。
When I walk away, however, it would be nice to know when the task is done, so I can jet back to my desk and get back to work. My awesome Mozilla colleague Byron "glob" Jones recently showed me his script for task completion notification and I forced him to put it up on GitHub so you all can get it too; it's called !
但是,当我走开时,很高兴知道任务何时完成,因此我可以飞回办公桌并重新开始工作。 我很棒的Mozilla同事Byron“ glob” Jones最近向我展示了他的任务完成通知脚本,我强迫他将其放在GitHub上,这样大家也都可以得到它。 这叫 !
Once you have ding
, you can do cools stuff like:
一旦ding
,您就可以做一些很酷的事情,例如:
# ding somecommandding docker-machine start defaultding ./start-local-environmentding ./refresh-environment
If the task completes successfully, you'll hear a positive sound; if the command fails, you'll hear a more negative sound -- a simple, yet useful and meaningful detail.
如果任务成功完成,您会听到积极的声音。 如果命令失败,您会听到更负面的声音-一个简单但有用且有意义的细节。
There's not much to explain except that ding
is awesome and should check it out!
除了ding
非常棒之外,没有什么要解释的了,应该检查一下!
翻译自:
叮当小猪