Skip to content

Commit 9a72d59

Browse files
authored
Helper script to kickstart a new endpoint implementation (#261)
1 parent 47d3b64 commit 9a72d59

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/new-endpoint.sh

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash -eu
2+
3+
# A helper script to kick start the implementation of a new endpoint by creating files that
4+
# are likely to be used.
5+
6+
NAME=$1
7+
8+
touch ./wp_api/src/"$NAME".rs
9+
touch ./wp_api/src/request/endpoint/"$NAME"_endpoint.rs
10+
touch ./wp_api_integration_tests/tests/test_"$NAME"_err.rs
11+
touch ./wp_api_integration_tests/tests/test_"$NAME"_immut.rs
12+
touch ./wp_api_integration_tests/tests/test_"$NAME"_mut.rs

0 commit comments

Comments
 (0)