From b9d86204bbb2d567b58120b9d91320f3b982a702 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Tue, 23 May 2023 11:47:58 +0900 Subject: [PATCH] Add mkcert completion --- src/_mkcert | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 src/_mkcert diff --git a/src/_mkcert b/src/_mkcert new file mode 100644 index 0000000..6c639de --- /dev/null +++ b/src/_mkcert @@ -0,0 +1,58 @@ +#compdef mkcert +# ------------------------------------------------------------------------------ +# Copyright (c) 2023 Github zsh-users - https://github.com/zsh-users +# +# Permission is hereby granted, free of charge, to any person obtaining +# a copy of this software and associated documentation files (the +# "Software"), to deal in the Software without restriction, including +# without limitation the rights to use, copy, modify, merge, publish, +# distribute, sublicense, and/or sell copies of the Software, and to +# permit persons to whom the Software is furnished to do so, subject to +# the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for mkcert v1.4.4 (https://github.com/FiloSottile/mkcert) +# +# ------------------------------------------------------------------------------ +# Authors +# ------- +# +# * Shohei Yoshida (https://github.com/syohex) +# +# ------------------------------------------------------------------------------ + +_arguments \ + '(- *)-help[Print help message]' \ + '(- *)-version[Print version information]' \ + '-install[Install the local CA in the system trust store]' \ + '-uninstall[Uninstall the local CA]' \ + '-cert-file[Specify cert file output path]:path:_files' \ + '-key-file[Specify key file output path]:path:_files' \ + '-p12-file[Specify p12 file output path]:path:_files' \ + '-client[Generate a certificate for client authentication]' \ + '-ecdsa[Generate a certificate with an ECDSA key]' \ + '-pkcs12[Generate a ".p12" PKCS #12 file]' \ + '-csr[Generate a certificate based on the supplied CSR]:csr' \ + '(- *)-CAROOT[Print the CA certificate and key storage location]' \ + && return 0 + +# Local Variables: +# mode: Shell-Script +# sh-indentation: 2 +# indent-tabs-mode: nil +# sh-basic-offset: 2 +# End: +# vim: ft=zsh sw=2 ts=2 et