Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
meishi125478
ohmyzsh
提交
d2218984
O
ohmyzsh
项目概览
meishi125478
/
ohmyzsh
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
ohmyzsh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d2218984
编写于
1月 23, 2018
作者:
A
Alexey Pristavkin
提交者:
Robby Russell
1月 22, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update of docker completion (#6542)
上级
f6a4e37e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
6 deletion
+7
-6
plugins/docker/_docker
plugins/docker/_docker
+7
-6
未找到文件。
plugins/docker/_docker
浏览文件 @
d2218984
...
...
@@ -226,7 +226,7 @@ __docker_get_log_options() {
common_options
=(
"max-buffer-size"
"mode"
)
common_options2
=(
"env"
"env-regex"
"labels"
)
awslogs_options
=(
$common_options
"awslogs-create-group"
"awslogs-datetime-format"
"awslogs-group"
"awslogs-multiline-pattern"
"awslogs-region"
"awslogs-stream"
"tag"
)
fluentd_options
=(
$common_options
$common_options2
"fluentd-address"
"fluentd-async-connect"
"fluentd-buffer-limit"
"fluentd-retry-wait"
"fluentd-max-retries"
"tag"
)
fluentd_options
=(
$common_options
$common_options2
"fluentd-address"
"fluentd-async-connect"
"fluentd-buffer-limit"
"fluentd-retry-wait"
"fluentd-max-retries"
"
fluentd-sub-second-precision"
"
tag"
)
gcplogs_options
=(
$common_options
$common_options2
"gcp-log-cmd"
"gcp-meta-id"
"gcp-meta-name"
"gcp-meta-zone"
"gcp-project"
)
gelf_options
=(
$common_options
$common_options2
"gelf-address"
"gelf-compression-level"
"gelf-compression-type"
"tag"
)
journald_options
=(
$common_options
$common_options2
"tag"
)
...
...
@@ -745,6 +745,7 @@ __docker_container_subcommand() {
"(
$help
)--privileged[Give extended Linux capabilities to the command]"
\
"(
$help
-t --tty)"
{
-t
,--tty
}
"[Allocate a pseudo-tty]"
\
"(
$help
-u --user)"
{
-u
=
,--user
=}
"[Username or UID]:user:_users"
\
"(
$help
-w --workdir)"
{
-w
=
,--workdir
=}
"[Working directory inside the container]:directory:_directories"
\
"(
$help
-):containers:__docker_complete_running_containers"
\
"(
$help
-)*::command:->anycommand"
&&
ret
=
0
case
$state
in
...
...
@@ -1393,7 +1394,7 @@ __docker_nodes() {
# Names
if
[[
$type
=
(
names|all
)
]]
;
then
for
line
in
$lines
;
do
s
=
"
${
line
[
${
begin
[
NAME]
}
,
${
end
[
NAME]
}
]%% ##
}
"
s
=
"
${
line
[
${
begin
[
HOSTNAME]
}
,
${
end
[HOST
NAME]
}
]%% ##
}
"
nodes
=(
$nodes
$s
)
done
fi
...
...
@@ -1955,6 +1956,7 @@ __docker_service_subcommand() {
"(
$help
)--health-retries=[Consecutive failures needed to report unhealthy]:retries:(1 2 3 4 5)"
"(
$help
)--health-timeout=[Maximum time to allow one check to run]:time: "
"(
$help
)--hostname=[Service container hostname]:hostname: "
\
"(
$help
)--isolation=[Service container isolation mode]:isolation:(default process hyperv)"
\
"(
$help
)*--label=[Service labels]:label: "
"(
$help
)--limit-cpu=[Limit CPUs]:value: "
"(
$help
)--limit-memory=[Limit Memory]:value: "
...
...
@@ -2168,9 +2170,9 @@ __docker_stacks() {
end[
${
header
[
$i
,
$((
j-1
))
]
}
]=
-1
lines
=(
${
lines
[2,-1]
}
)
# Service
ID
# Service
NAME
for
line
in
$lines
;
do
s
=
"
${
line
[
${
begin
[
ID]
}
,
${
end
[ID
]
}
]%% ##
}
"
s
=
"
${
line
[
${
begin
[
NAME]
}
,
${
end
[NAME
]
}
]%% ##
}
"
stacks
=(
$stacks
$s
)
done
...
...
@@ -2631,7 +2633,6 @@ __docker_subcommand() {
"(
$help
)--default-gateway-v6[Container default gateway IPv6 address]:IPv6 address: "
\
"(
$help
)--default-shm-size=[Default shm size for containers]:size:"
\
"(
$help
)*--default-ulimit=[Default ulimits for containers]:ulimit: "
\
"(
$help
)--disable-legacy-registry[Disable contacting legacy registries (default true)]"
\
"(
$help
)*--dns=[DNS server to use]:DNS: "
\
"(
$help
)*--dns-opt=[DNS options to use]:DNS option: "
\
"(
$help
)*--dns-search=[DNS search domains to use]:DNS search: "
\
...
...
@@ -3023,4 +3024,4 @@ _docker "$@"
# indent-tabs-mode: nil
# sh-basic-offset: 4
# End:
# vim: ft=zsh sw=4 ts=4 et
# vim: ft=zsh sw=4 ts=4 et
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录