"Kops completion"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 하나는 보이지 않습니다)
34번째 줄: 34번째 줄:
</source>
</source>
<source lang='console'>
<source lang='console'>
testuser@localhost:~$ kops completion bash
testuser@localhost:~$ kops completion zsh
 
# 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
... (생략)
    __kops_handle_word
}
 
if [[ $(type -t compopt) = "builtin" ]]; then
    complete -o default -F __start_kops kops
else
    complete -o default -o nospace -F __start_kops kops
fi
 
# ex: ts=4 sw=4 et filetype=sh
</source>
<source lang='console'>
$ kops completion zsh


# Copyright 2016 The Kubernetes Authors.
# Copyright 2016 The Kubernetes Authors.

2019년 5월 30일 (목) 20:50 기준 최신판

1 개요[ | ]

kops completion
  • 쉘(bash 또는 zsh) 자동완성 코드를 출력하는 kops 명령어
testuser@localhost:~$ kops completion

shell is required
testuser@localhost:~$ kops 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
... (생략)
    __kops_handle_word
}

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

# ex: ts=4 sw=4 et filetype=sh
testuser@localhost:~$ kops completion zsh

# 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
... (생략)
else
    complete -o default -o nospace -F __start_kops kops
fi

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

BASH_COMPLETION_EOF
}
__kops_bash_source <(__kops_convert_bash_to_zsh)
_complete kops 2>/dev/null

2 같이 보기[ | ]

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