Skip to content

增加翻译adding-bash-completion-to-python-script - #16

Merged
ictar merged 2 commits into
ictar:masterfrom
lujun9972:20160609
Jun 26, 2016
Merged

ictar merged 2 commits into
ictar:masterfrom
lujun9972:20160609

Conversation

@lujun9972

Copy link
Copy Markdown
Contributor

No description provided.

@ictar

ictar commented Jun 13, 2016

Copy link
Copy Markdown
Owner

烦请检查下,跟原文有出入。

@lujun9972

Copy link
Copy Markdown
Contributor Author

跟原文有出入?啥意思?


Bash有一项很有用的功能,就是当你在终端输入一个命令后,按两下 =<TAB>= 就会列出该命令支持的所有可能参数.

在Liquid Galaxy软件中心,我们有一个脚本,可以让我们以ssh的方式通过一个特定隧道连接到我们的其中一个装置上. 这个脚本本身很复杂,但是大多数时候使用方法很简单. 下面这行命令可以让我通过一个特定的代理服务器连接到Liquid Galaxy上的机器.

@ictar ictar Jun 13, 2016 •

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文这里是:
I will show how to integrate this mechanism into a custom python script with two types of arguments. What's more, I want this to be totally generic. I don't want to change it when I will change the options, or change config files.
This script accepts two types of arguments. One type contains mainly flags beginning with '--', the other type is a host name taken from a bunch of chef scripts.
Let's name this script show.py - it will show some information about the host. This way I can use it with:

@ictar

ictar commented Jun 26, 2016

Copy link
Copy Markdown
Owner

我是忘了留comment,所以没提醒到吗?

@lujun9972

Copy link
Copy Markdown
Contributor Author

嗯嗯嗯,收到

@lujun9972

Copy link
Copy Markdown
Contributor Author

蒙逼了,怎么会这么多不一样.....

@lujun9972

Copy link
Copy Markdown
Contributor Author

@ictar 更新了

@ictar
ictar merged commit 1cae800 into ictar:master Jun 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants