From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Tue, 15 Jan 2019 21:39:24 -0500 Subject: [U-Boot] [U-Boot, v4, 4/6] command: commands: Add macros to declare commands with subcmds In-Reply-To: <20181203215423.18772-5-boris.brezillon@bootlin.com> References: <20181203215423.18772-5-boris.brezillon@bootlin.com> Message-ID: <20190116023924.GQ27429@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Dec 03, 2018 at 10:54:21PM +0100, Boris Brezillon wrote: > Most cmd/xxx.c source files expose several commands through a single > entry point. Some of them are doing the sub-command parsing manually in > their do_() function, others are declaring a table of sub-commands > and then use find_cmd_tbl() to delegate the request to the sub command > handler. > > In either case, the amount of code to do that is not negligible and > repetitive, not to mention that almost no commands are implementing > the auto-completion hook, which means most u-boot commands lack > auto-completion. > > Provide several macros to easily define commands exposing sub-commands. > > Signed-off-by: Boris Brezillon > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: