Merge pull request #32 from boardroom-inc/script

This commit is contained in:
Sudheer 2021-02-25 10:05:18 +05:30 committed by GitHub
commit c94c73fbf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

19
scripts/add_new_protocol.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# A bash script to add protocol info directory skeleton
for arg in "$@"
do
if [ "$arg" == "--help" ] || [ "$arg" == "-h" ]
then
echo "Pass in the name of the protocol whose info you want to add. e.g: ./add_new_protocol.sh rarible"
else
mkdir -p ./$arg
mkdir -p ./$arg/calls
touch ./$arg/event.json
touch ./$arg/overview.md
touch ./$arg/logo.png
touch ./$arg/header.png
fi
done
echo "Arg 1: $1"