Make uf2reset available across nRF52 CLI roles

This commit is contained in:
mikecarper
2026-09-04 02:01:40 -07:00
parent a8cf4fd12f
commit 69d9d9e62a
14 changed files with 154 additions and 34 deletions
@@ -719,6 +719,15 @@ TEST(CLICommandUtils, MatchesDiscoverNeighborsWithoutPrefixCollisions) {
"discover.neighbors.extra", "discover.neighbors"));
}
TEST(CLICommandUtils, MatchesOnlyACompleteUf2ResetCommand) {
EXPECT_TRUE(mesh::cli::isUf2ResetCommand("uf2reset"));
EXPECT_TRUE(mesh::cli::isUf2ResetCommand("uf2reset "));
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2reset now"));
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2reset.extra"));
EXPECT_FALSE(mesh::cli::isUf2ResetCommand("uf2"));
EXPECT_FALSE(mesh::cli::isUf2ResetCommand(nullptr));
}
TEST(CLICommandUtils, ParsesRecentRepeaterListAndPageQueries) {
using mesh::cli::RecentRepeaterGetMatch;
mesh::cli::RecentRepeaterGetQuery query;