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

잔글 (봇: 자동으로 텍스트 교체 (-<source +<syntaxhighlight , -</source> +</syntaxhighlight>))
 
4번째 줄: 4번째 줄:


{{소스헤더|사용법}}
{{소스헤더|사용법}}
<source lang='bash'>
<syntaxhighlight lang='bash'>
source <(kubectl completion bash)
source <(kubectl completion bash)
</source>
</syntaxhighlight>
{{소스헤더|내용}}
{{소스헤더|내용}}
<source lang='bash'>
<syntaxhighlight lang='bash'>
$ kubectl completion bash
$ kubectl completion bash


31번째 줄: 31번째 줄:


# ex: ts=4 sw=4 et filetype=sh
# ex: ts=4 sw=4 et filetype=sh
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2025년 9월 17일 (수) 17:50 기준 최신판

1 개요[ | ]

kubectl completion bash
사용법
source <(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 같이 보기[ | ]

3 참고[ | ]

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