Repository navigation
增加翻译adding-bash-completion-to-python-script - #16
Merged
Merged
Conversation
Owner
|
烦请检查下,跟原文有出入。 |
Contributor
Author
|
跟原文有出入?啥意思? |
|
|
||
| Bash有一项很有用的功能,就是当你在终端输入一个命令后,按两下 =<TAB>= 就会列出该命令支持的所有可能参数. | ||
|
|
||
| 在Liquid Galaxy软件中心,我们有一个脚本,可以让我们以ssh的方式通过一个特定隧道连接到我们的其中一个装置上. 这个脚本本身很复杂,但是大多数时候使用方法很简单. 下面这行命令可以让我通过一个特定的代理服务器连接到Liquid Galaxy上的机器. |
Owner
There was a problem hiding this comment.
原文这里是:
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:
Owner
|
我是忘了留comment,所以没提醒到吗? |
Contributor
Author
|
嗯嗯嗯,收到 |
Contributor
Author
|
蒙逼了,怎么会这么多不一样..... |
Contributor
Author
|
@ictar 更新了 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.