net: shell: Rename current command as net_old
This is a preparation for the refactoring. The old "net" command is renamed "net_old" so that the individual commands can be placed into a separate .c files. This is done like this because we need to use the SHELL_SUBCMD_SET_CREATE() to create the sub-command and then use the SHELL_SUBCMD_ADD() in the .c files to add the command into the sub-command and not get conflict with the same name sub-command. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
parent
56c1bb813f
commit
394a40470d
|
@ -6721,7 +6721,12 @@ SHELL_STATIC_SUBCMD_SET_CREATE(net_commands,
|
|||
SHELL_SUBCMD_SET_END
|
||||
);
|
||||
|
||||
SHELL_CMD_REGISTER(net, &net_commands, "Networking commands", NULL);
|
||||
SHELL_CMD_REGISTER(net_old, &net_commands, "Networking commands", NULL);
|
||||
|
||||
/* Placeholder for net commands that are configured in the rest of the .c files */
|
||||
SHELL_SUBCMD_SET_CREATE(net_cmds, (net));
|
||||
|
||||
SHELL_CMD_REGISTER(net, &net_cmds, "Networking commands", NULL);
|
||||
|
||||
int net_shell_init(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue