We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47d3b64 commit 9a72d59Copy full SHA for 9a72d59
scripts/new-endpoint.sh
@@ -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