From 9575a23328bb7edb5113a7d331e39b26332a01cd Mon Sep 17 00:00:00 2001 From: Keivan Ipchi Hagh Date: Tue, 19 Mar 2024 00:54:18 +0330 Subject: [PATCH] feat: rename files --- .gitignore | 2 +- README.md | 2 +- {protos => protobufs}/athena.proto | 0 {protos => protobufs}/athena_struct.proto | 0 {protos => protobufs}/candlestick_struct.proto | 0 scripts/build.sh | 10 +++++----- 6 files changed, 7 insertions(+), 7 deletions(-) rename {protos => protobufs}/athena.proto (100%) rename {protos => protobufs}/athena_struct.proto (100%) rename {protos => protobufs}/candlestick_struct.proto (100%) diff --git a/.gitignore b/.gitignore index c2e4912..119d948 100644 --- a/.gitignore +++ b/.gitignore @@ -160,4 +160,4 @@ cython_debug/ #.idea/ # other -src/ \ No newline at end of file +rpc/ \ No newline at end of file diff --git a/README.md b/README.md index 36a2c7e..c0965ca 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# api-schema \ No newline at end of file +# api-scheme \ No newline at end of file diff --git a/protos/athena.proto b/protobufs/athena.proto similarity index 100% rename from protos/athena.proto rename to protobufs/athena.proto diff --git a/protos/athena_struct.proto b/protobufs/athena_struct.proto similarity index 100% rename from protos/athena_struct.proto rename to protobufs/athena_struct.proto diff --git a/protos/candlestick_struct.proto b/protobufs/candlestick_struct.proto similarity index 100% rename from protos/candlestick_struct.proto rename to protobufs/candlestick_struct.proto diff --git a/scripts/build.sh b/scripts/build.sh index f28e325..3e78809 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,11 +1,11 @@ #!/bin/bash working_dir=$(pwd) -proto_dirs=($(pwd)/protos) # ./protos/ -python_dir=($(pwd)/src) # ./src/ +proto_dirs=($(pwd)/protobufs) # ./protobufs/ +python_dir=($(pwd)/rpc) # ./rpc/ -# Create ./src/ dirctory -directory="src" +# Create ./rpc/ dirctory +directory="rpc" if [ ! -d "$directory" ]; then # Create the directory mkdir -p "$directory" @@ -14,7 +14,7 @@ else echo "Directory '$directory' already exists." fi -# Build *.proto files within the ./protos/ directory +# Build *.proto files within the ./protobufs/ directory for file in $proto_dirs/*.proto; do filename=$(basename "$file") if echo "$filename" | grep -q "struct"; then