aboutsummaryrefslogtreecommitdiff
path: root/create
diff options
context:
space:
mode:
Diffstat (limited to 'create')
-rwxr-xr-xcreate18
1 files changed, 18 insertions, 0 deletions
diff --git a/create b/create
new file mode 100755
index 0000000..438d341
--- /dev/null
+++ b/create
@@ -0,0 +1,18 @@
+#!/bin/rc
+repo=()
+desc=()
+
+fn usage {
+ echo usage: $0 name description >[1=2]
+ exit usage
+}
+
+if(! ~ $#* 2)
+ usage
+
+repo=$1
+desc=$2
+
+gh/gh POST /user/repos <<EOF
+{"name": "$repo", "description": "$desc"}
+EOF