Lines Matching refs:active_cmd
63 z_shell_help_cmd_print(sh, &sh->ctx->active_cmd); in shell_internal_help_print()
64 z_shell_help_subcmd_print(sh, &sh->ctx->active_cmd, in shell_internal_help_print()
84 sh->ctx->active_cmd.syntax); in cmd_precheck()
367 match = z_shell_cmd_get(cmd, subcmd_idx, &sh->ctx->active_cmd); in autocomplete()
440 match = z_shell_cmd_get(cmd, idx, &sh->ctx->active_cmd); in tab_options_print()
521 if (sh->ctx->active_cmd.handler == NULL) { in exec_cmd()
526 if (help_entry->help != sh->ctx->active_cmd.help) { in exec_cmd()
527 sh->ctx->active_cmd = *help_entry; in exec_cmd()
540 if (sh->ctx->active_cmd.args.mandatory) { in exec_cmd()
541 uint32_t mand = sh->ctx->active_cmd.args.mandatory; in exec_cmd()
542 uint8_t opt8 = sh->ctx->active_cmd.args.optional; in exec_cmd()
561 ret_val = sh->ctx->active_cmd.handler(sh, argc, in exec_cmd()
572 struct shell_static_entry *active_cmd, in active_cmd_prepare() argument
579 *active_cmd = *entry; in active_cmd_prepare()
648 memset(&sh->ctx->active_cmd, 0, sizeof(sh->ctx->active_cmd)); in execute()
665 active_cmd_prepare(parent, &sh->ctx->active_cmd, &help_entry, in execute()
693 sh->ctx->active_cmd = help_entry; in execute()
739 active_cmd_prepare(entry, &sh->ctx->active_cmd, in execute()