-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[shell] move common shell commands to core library #6765
Conversation
Enable wifi network should be done by ConnectivityManager. (Or other platform neutral interfaces)connectedhomeip/src/lib/shell/commands/CommandWiFi.cpp Lines 26 to 36 in 043bb68
This comment was generated by todo based on a
|
043bb68
to
7a9b020
Compare
7a9b020
to
b8a4c5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename code to NOT use names like helper/support/util/tools/core.
These names do not describe what the contents of the file generally is and end up being filled with unrelated parts of code as a result.
shell/shell_core.h stutters and if I remove the stutter I get shell/core.h
which is unclear about what that is.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would also avoid 'common' in names.
/rebase |
bebb1b8
to
c61d6ec
Compare
f990daf
to
3137f8b
Compare
@andy31415 PTAL |
3137f8b
to
740cb69
Compare
740cb69
to
196e840
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that we had renamed shell/shell.h
to shell/shell_core.h
to fix filename collision with Zephyr-supplied shell/shell.h
. Now that the file was renamed to Shell.h
the issue is gone on Linux/mac, but may still appear on case-insensitive systems like Windows. Can we possibly rename it to something like Engine.h
? @andy31415 would you approve such a name? :)
This is the first PR of the effort toadd shell as an optional component for all devices. * Move wifi, ble and device config command to common library * The `wifi` commands has been simplified with less modes. Platform-specific commands have been removed. * The `btp` command is renamed to `ble` with all the not-implemented commands removed. * The `device config` command is renamed to `config` with unused configs removed. * Fix shell formatting on ESP32.
196e840
to
8267f99
Compare
@Damian-Nordic renamed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Size increase report for "nrfconnect-example-build" from 8a51de2
Full report output
|
Sure. Also my request to avoid odd names is not a ban, just trying hard. If there is a naming clash then that seems to warrant a name change. Would not block PR over this for sure. |
Update according to changes to project-chip#6765 .
Update according to changes to project-chip#6765 .
Update according to changes to project-chip#6765 .
Problem
We'd like to have a user-friendly CLI in the devices for developing and testing as we have in OpenThread.
Summary of Changes
This is the first PR of the effort to add shell as an optional component for all devices.
Main changes include:
wifi
commands has been simplified with less modes.Platform-specific commands have been removed.
btp
command is renamed toble
with all the not-implemented commands removed.device config
command is renamed toconfig
with unused configs removed.