"Kubectl completion bash"의 두 판 사이의 차이

(새 문서: {{소문자}} ==개요== ;kubectl completion bash <source lang='bash'> $ kubectl completion bash # Copyright 2016 The Kubernetes Authors. # # Licensed under the Apache License, Vers...)
 
30번째 줄: 30번째 줄:
==같이 보기==
==같이 보기==
* [[kubectl completion]]
* [[kubectl completion]]
* [[kubectl 자동완성 기능 활성화]]


[[분류: kubectl]]
[[분류: kubectl]]

2019년 5월 27일 (월) 16:42 판

1 개요

kubectl completion bash
$ kubectl completion bash

# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... (생략)
    __kubectl_handle_word
}

if [[ $(type -t compopt) = "builtin" ]]; then
    complete -o default -F __start_kubectl kubectl
else
    complete -o default -o nospace -F __start_kubectl kubectl
fi

# ex: ts=4 sw=4 et filetype=sh

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}