File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
content/zh/docs/tasks/extend-kubectl Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ command containing dashes in its commandline invocation by using underscores (`_
313
313
#### 带有破折号和下划线的名称
314
314
315
315
虽然 ` kubectl ` 插件机制在插件文件名中使用破折号(` - ` )分隔插件处理的子命令序列,
316
- 但是仍然可以通过在文件名中使用下划线(` - ` )来创建命令行中包含破折号的插件命令。
316
+ 但是仍然可以通过在文件名中使用下划线(` _ ` )来创建命令行中包含破折号的插件命令。
317
317
318
318
<!-- Example: -->
319
319
例子:
@@ -338,7 +338,7 @@ Note that the introduction of underscores to a plugin filename does not prevent
338
338
The command from the above example, can be invoked using either a dash (`-`) or an underscore (`_`):
339
339
-->
340
340
请注意,在插件文件名中引入下划线并不会阻止我们使用 ` kubectl foo_bar ` 之类的命令。
341
- 可以使用破折号(` - ` )或下划线(` - ` )调用上面示例中的命令:
341
+ 可以使用破折号(` - ` )或下划线(` _ ` )调用上面示例中的命令:
342
342
343
343
``` shell
344
344
# 我们的插件也可以用破折号来调用
You can’t perform that action at this time.
0 commit comments