File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17+ # Check if clang-format is installed
18+ if ! command -v clang-format > /dev/null 2>&1 ; then
19+ echo " Error: clang-format is not installed"
20+ echo " Please install it using: brew install clang-format"
21+ exit 1
22+ fi
23+
1724find ./src -not -path " ./src/viam/api" -type f \( -name \* .cpp -o -name \* .hpp \) | xargs clang-format -style=file -i -fallback-style=none " $@ "
Original file line number Diff line number Diff line change @@ -83,6 +83,11 @@ struct from_proto_impl<app::v1::ComponentConfig> {
8383 ResourceConfig operator ()(const app::v1::ComponentConfig*) const ;
8484};
8585
86+ template <>
87+ struct from_proto_impl <service::discovery::v1::DiscoverResourcesResponse>{
88+ std::vector<ResourceConfig> operator ()(const service::discovery::v1::DiscoverResourcesResponse*) const ;
89+ };
90+
8691} // namespace proto_convert_details
8792
8893} // namespace sdk
You can’t perform that action at this time.
0 commit comments