From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27983 invoked by alias); 8 Jun 2015 20:50:15 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35417 Received: (qmail 7122 invoked from network); 8 Jun 2015 20:50:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1433796263; bh=3M0wjlFDxB29B7bC/dF46sykV8bgRJx+iIL0Mm3y/ws=; h=Date:From:To:Subject:From; b=i1FRmTcE7mKc9DvHwXbJ9rK42aUa+rD4h2T/Z/tI26EW7GWtRXTKY6MwKCLciXBWe qn9JfhK15ie4vxoTbkLwWow9ld4KyT/1mbWGBRSTEV3AYxw1FtsSDKT+siAOlaw4SW dR2jOMG606J2VydB++vP75wPzP65sI4ym92LTL6s= Date: Mon, 8 Jun 2015 16:44:21 -0400 From: Chad Sharp To: zsh-workers@zsh.org Subject: nmcli completions Message-ID: <20150608204420.GA3699@riseup.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: clamav-milter 0.98.7 at mx1 X-Virus-Status: Clean --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I'm not a subscriber to the mailing list and please forgive me if this=20 is the wrong place to report this. The completions for nmcli are very incomplete and in some instances,=20 incorrect. These were my steps $ zsh -f $ autoload -U compinit $ compinit -i $ nmcli con -- NetworkManager connections dev -- devices managed by NetworkManager nm -- NetworkManager status $ nmcli con down -- deactivate a connection list -- list configured connections status -- print status of active connections up -- activate a connection $ nmcli dev disconnect -- disconnect device and prevent it from automatically=20 activating list -- get detailed information about devices status -- print status of devices wifi -- list available wifi access points For simplicity's sake, I'm only going one subcommand deep because if you=20 try to tab complete "nmcli con mod" (which should have a large amount of=20 options you can change in the network configuration) you only get the=20 "con, dev and nm" completions again. So to starting from the top, `nmcli nm` is not a command and should not=20 be part of the completion at all. nmcli con and nmcli dev are valid=20 commands but there are several others that should be included. nmcli's=20 options of course, but also the remaining objects: gen, net, rad, and=20 age. All the objects should also have completions as well. `nmcli con help` does show down, list, status and up but also show, add,=20 modify, edit, delete, reload and load. Some of these objects have=20 further subobjects or options themselves. `nmcli dev help` does have disconnect, list, status and wifi but also=20 status and connect. As before, wifi has several subobjects and options --liOOAslEiF7prFVr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQJ8BAEBCgBmBQJVdf6fXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ5QzJEMDZCQ0Y4MDUzMjE1NUVDRDdCRTQ3 NEExQjIzRjEwOEQ4NERDAAoJEHShsj8QjYTcafMP/28HvCxs+kM6fG4U6nIFE47Y X95I1GRvgQMRub42TjkrZMYhLJSxA4Ad/IrV5ZbYdWxRFHP8lTrG9UEAKx1jU/vH Z3HWVbRS/D4hNIUK/Nq5iQvUG+BcUKgupwro+5O21D8wiLSox+Yzbry5iF6P/xfx FMcdYfwHnMlLPyvrI2gXQlsO4kEmr1iHj0CGfjQA5a3GpIO1Ve5Asvpbg+wyT1C6 SS85aJWjiq5oax6t4m6djR6Jk2mdZ9IWX5AsXNGo6KVYdN4o0u8pcl5lUIWGO9lC IsplqMXBDCX5VT5MNqcRh0xtaX05Bzjw8pJ3pwK6JbjVUs0KOA7gv0N6pZujwRYL m5jxNN299eKonP9fkP6462kw6MM6/kIy8900tT0KOE9zylvhNNfs99kwUfjEwQYI 2dth7LjjJ4rzc2HmXKbsY9h8VI5Gz55rQav5JPRozlnVhP30KUAJ6zfcTxL1HXyj Pq59HAsa/PQ3eeJOW1QII0YsmZfF0cIX4IvM91NnRcxx4E06wGmLt1q4gBTrlPQP 2kO2ywCYyNzTNwB5WKlEld7vPCaHYFe6koTbVjYnWH7f5/9zsG8SwLaePmKWltjJ NIpVcyfpy7kcOPKgeXLP9FIh628D3XN/Rs1SRbOj1zmUxfeTKvGqe+evrKMllroC 37DtI0/8CnMJ4wTQUFKJ =7tg6 -----END PGP SIGNATURE----- --liOOAslEiF7prFVr--