wangchdo opened a new pull request, #3167:
URL: https://github.com/apache/nuttx-apps/pull/3167
Add:
A new config: NSH_BUILTIN_AS_COMMAND
Provide a new implementation for nsh_builtin when
CONFIG_NSH_BUILTIN_AS_COMMAND is enabled
*Note: Please adhere to [Contributing
Guidelines](https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md).*
## Summary
Provide support to run nsh builtin directly without creating a separate
thread
## Impact
nsh builtin is dynamic and easy to use, better than nsh command. This patch
add support to run nsh builtin directly like nsh command without need to create
a thread, the app developer can choose to create thread by it self in its app
main entry.
## Testing
**Enable CONFIG_NSH_BUILTIN_AS_COMMAND:**
<img width="1083" height="568" alt="image"
src="https://github.com/user-attachments/assets/1f4c5561-e30b-4af4-92ee-ffe1b8b2c810"
/>
**ostest OK**
<img width="599" height="539" alt="image"
src="https://github.com/user-attachments/assets/65d84907-9de4-4084-aa8d-a0aade5536d6"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]