-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_dev.py
More file actions
22 lines (13 loc) · 773 Bytes
/
Copy pathsetup_dev.py
File metadata and controls
22 lines (13 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
This repo can be setup by calling this script with the following arguments
python3 setup_dev.py $service $method $method_type $input_msg $output_msg
$method_type : [simple, response-streaming, request-streaming, bidirectional-streaming]
"""
# Create the .proto file for service and message definitions
# Generate quicklink to .proto cheat sheet so it's quick to write new definitions
# Fill the .proto file with template definitions based on service name
# Generate sample_server.py based on the given arguments
# (this is where the real logic is implemented)
# Question - if we want to keep the core logic for a method we've implemented
# but update part of the definition, how do we regenerate the server file
# without over-writing all of the contents?