zsh-workers
 help / color / Atom feed
* [PATCH] Add completion functions for Cygwin.
@ 2020-06-25 18:24 Yasuhiro KIMURA
  2020-06-26 13:47 ` Daniel Shahaf
  0 siblings, 1 reply; 3+ messages in thread
From: Yasuhiro KIMURA @ 2020-06-25 18:24 UTC (permalink / raw)
  To: zsh-workers

They are probably created by Peter A. Castro, maintainer of Cygwin zsh
package.
---
 Completion/Cygwin/Command/_mkgroup  | 18 ++++++++++++++++++
 Completion/Cygwin/Command/_mkpasswd | 24 ++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 Completion/Cygwin/Command/_mkgroup
 create mode 100644 Completion/Cygwin/Command/_mkpasswd

diff --git a/Completion/Cygwin/Command/_mkgroup b/Completion/Cygwin/Command/_mkgroup
new file mode 100644
index 000000000..49025547a
--- /dev/null
+++ b/Completion/Cygwin/Command/_mkgroup
@@ -0,0 +1,18 @@
+#compdef mkgroup
+
+_arguments -C \
+  '(-l)--local[print local group information]' \
+  '(--local)-l[print local group information]' \
+  '(-d)--domain[print global group information from the domain specified (or from the current domain if there is no domain specified)]' \
+  '(--domain)-d[print global group information from the domain specified (or from the current domain if there is no domain specified)]' \
+  '(-o)--id-offset[offset change the default offset (10000) added to uids in domain accounts]' \
+  '(--id-offset)-o[offset change the default offset (10000) added to uids in domain accounts]' \
+  '(-s)--no-sids[don\'t print SIDs in pwd field (this affects ntsec)]' \
+  '(--no-sids)-s[don\'t print SIDs in pwd field (this affects ntsec)]' \
+  '(-u)--users[print user list in gr_mem field]' \
+  '(--users)-u[print user list in gr_mem field]' \
+  '(-h)--help[print this message]' \
+  '(--help)-h[print this message]' \
+  '(-v)--version[print version information and exit]' \
+  '(--version)-v[print version information and exit]' \
+  ':domain:'
diff --git a/Completion/Cygwin/Command/_mkpasswd b/Completion/Cygwin/Command/_mkpasswd
new file mode 100644
index 000000000..de80a0086
--- /dev/null
+++ b/Completion/Cygwin/Command/_mkpasswd
@@ -0,0 +1,24 @@
+#compdef mkpasswd
+
+_arguments -C \
+  '(-l)--local[print local group information]' \
+  '(--local)-l[print local group information]' \
+  '(-d)--domain[print domain accounts (from current domain if no domain specified)]' \
+  '(--domain)-d[print domain accounts (from current domain if no domain specified)]' \
+  '(-o)--id-offset[change the default offset (10000) added to uids in domain accounts]' \
+  '(--id-offset)-o[change the default offset (10000) added to uids in domain accounts]' \
+  '(-g)--local-groups[print local group information too if no domain specified]' \
+  '(--local-groups)-g[print local group information too if no domain specified]' \
+  '(-m)--no-mount[don\'t use mount points for home dir]' \
+  '(--no-mount)-m[don\'t use mount points for home dir]' \
+  '(-s)--no-sids[don\'t print SIDs in pwd field (this affects ntsec)]' \
+  '(--no-sids)-s[don\'t print SIDs in pwd field (this affects ntsec)]' \
+  '(-p)--path-to-home[use specified path instead of user account home dir]' \
+  '(--path-to-home)-p[use specified path instead of user account home dir]' \
+  '(-u)--username[only return information for the specified user]' \
+  '(--username)-u[only return information for the specified user]' \
+  '(-h)--help[displays this message]' \
+  '(--help)-h[displays this message]' \
+  '(-v)--version[print version information and exit]' \
+  '(--version)-v[print version information and exit]' \
+  ':domain:'
-- 
2.27.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add completion functions for Cygwin.
  2020-06-25 18:24 [PATCH] Add completion functions for Cygwin Yasuhiro KIMURA
@ 2020-06-26 13:47 ` Daniel Shahaf
  2020-06-26 15:24   ` Yasuhiro KIMURA
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Shahaf @ 2020-06-26 13:47 UTC (permalink / raw)
  To: Yasuhiro KIMURA; +Cc: zsh-workers

Yasuhiro KIMURA wrote on Fri, 26 Jun 2020 03:24 +0900:
> They are probably created by Peter A. Castro, maintainer of Cygwin zsh
> package.

Thanks for the patch.  Under what license has Peter A. Castro placed these files?

Cheers,

Daniel


> ---
>  Completion/Cygwin/Command/_mkgroup  | 18 ++++++++++++++++++
>  Completion/Cygwin/Command/_mkpasswd | 24 ++++++++++++++++++++++++
>  2 files changed, 42 insertions(+)
>  create mode 100644 Completion/Cygwin/Command/_mkgroup
>  create mode 100644 Completion/Cygwin/Command/_mkpasswd
> 
> diff --git a/Completion/Cygwin/Command/_mkgroup b/Completion/Cygwin/Command/_mkgroup
> new file mode 100644
> index 000000000..49025547a
> --- /dev/null
> +++ b/Completion/Cygwin/Command/_mkgroup
> @@ -0,0 +1,18 @@
> +#compdef mkgroup
> +
> +_arguments -C \
> +  '(-l)--local[print local group information]' \
> +  '(--local)-l[print local group information]' \
> +  '(-d)--domain[print global group information from the domain specified (or from the current domain if there is no domain specified)]' \
> +  '(--domain)-d[print global group information from the domain specified (or from the current domain if there is no domain specified)]' \
> +  '(-o)--id-offset[offset change the default offset (10000) added to uids in domain accounts]' \
> +  '(--id-offset)-o[offset change the default offset (10000) added to uids in domain accounts]' \
> +  '(-s)--no-sids[don\'t print SIDs in pwd field (this affects ntsec)]' \
> +  '(--no-sids)-s[don\'t print SIDs in pwd field (this affects ntsec)]' \
> +  '(-u)--users[print user list in gr_mem field]' \
> +  '(--users)-u[print user list in gr_mem field]' \
> +  '(-h)--help[print this message]' \
> +  '(--help)-h[print this message]' \
> +  '(-v)--version[print version information and exit]' \
> +  '(--version)-v[print version information and exit]' \
> +  ':domain:'
> diff --git a/Completion/Cygwin/Command/_mkpasswd b/Completion/Cygwin/Command/_mkpasswd
> new file mode 100644
> index 000000000..de80a0086
> --- /dev/null
> +++ b/Completion/Cygwin/Command/_mkpasswd
> @@ -0,0 +1,24 @@
> +#compdef mkpasswd
> +
> +_arguments -C \
> +  '(-l)--local[print local group information]' \
> +  '(--local)-l[print local group information]' \
> +  '(-d)--domain[print domain accounts (from current domain if no domain specified)]' \
> +  '(--domain)-d[print domain accounts (from current domain if no domain specified)]' \
> +  '(-o)--id-offset[change the default offset (10000) added to uids in domain accounts]' \
> +  '(--id-offset)-o[change the default offset (10000) added to uids in domain accounts]' \
> +  '(-g)--local-groups[print local group information too if no domain specified]' \
> +  '(--local-groups)-g[print local group information too if no domain specified]' \
> +  '(-m)--no-mount[don\'t use mount points for home dir]' \
> +  '(--no-mount)-m[don\'t use mount points for home dir]' \
> +  '(-s)--no-sids[don\'t print SIDs in pwd field (this affects ntsec)]' \
> +  '(--no-sids)-s[don\'t print SIDs in pwd field (this affects ntsec)]' \
> +  '(-p)--path-to-home[use specified path instead of user account home dir]' \
> +  '(--path-to-home)-p[use specified path instead of user account home dir]' \
> +  '(-u)--username[only return information for the specified user]' \
> +  '(--username)-u[only return information for the specified user]' \
> +  '(-h)--help[displays this message]' \
> +  '(--help)-h[displays this message]' \
> +  '(-v)--version[print version information and exit]' \
> +  '(--version)-v[print version information and exit]' \
> +  ':domain:'


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add completion functions for Cygwin.
  2020-06-26 13:47 ` Daniel Shahaf
@ 2020-06-26 15:24   ` Yasuhiro KIMURA
  0 siblings, 0 replies; 3+ messages in thread
From: Yasuhiro KIMURA @ 2020-06-26 15:24 UTC (permalink / raw)
  To: zsh-workers

From: Daniel Shahaf <d.s@daniel.shahaf.name>
Subject: Re: [PATCH] Add completion functions for Cygwin.
Date: Fri, 26 Jun 2020 13:47:51 +0000

> Thanks for the patch.  Under what license has Peter A. Castro placed these files?
> 
> Cheers,
> 
> Daniel

Oops, I forgot it. I'll ask him about it.

---
Yasuhiro KIMURA

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, back to index

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-25 18:24 [PATCH] Add completion functions for Cygwin Yasuhiro KIMURA
2020-06-26 13:47 ` Daniel Shahaf
2020-06-26 15:24   ` Yasuhiro KIMURA

zsh-workers

Archives are clonable: git clone --mirror http://inbox.vuxu.org/zsh-workers

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git