blob: 8780d6c93f07682c44d44508a7809e5f56e5ab5e [file] [log] [blame]
Armando Montaneza0eb85c2023-09-13 15:25:59 +00001# Copyright 2023 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14"""Wraps pw_system's console to inject additional RPC protos."""
15
16import sys
17
18from pw_protobuf_protos import common_pb2
Anthony DiGirolamo21f1c8c2024-06-10 22:10:21 +000019from pw_rpc import echo_pb2
Armando Montaneza0eb85c2023-09-13 15:25:59 +000020import pw_system.console
21from rpc_example_protos import rpc_example_service_pb2
22
23
Anthony DiGirolamo21f1c8c2024-06-10 22:10:21 +000024def main() -> int:
25 compiled_protos = [common_pb2, echo_pb2, rpc_example_service_pb2]
26 return pw_system.console.main_with_compiled_protos(compiled_protos)
Armando Montaneza0eb85c2023-09-13 15:25:59 +000027
28
29if __name__ == '__main__':
30 sys.exit(main())