aboutsummaryrefslogtreecommitdiff
path: root/delete
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2020-06-11 19:40:06 +0000
committerrodri <rgl@antares-labs.eu>2020-06-11 19:40:06 +0000
commitb6358a184b7a217d1fc163ec492f42a188eee5de (patch)
tree246a8ae4d3be4cd2e51b6df44a5c5c0e3357895f /delete
downloadgithub9-b6358a184b7a217d1fc163ec492f42a188eee5de.tar.gz
github9-b6358a184b7a217d1fc163ec492f42a188eee5de.tar.bz2
github9-b6358a184b7a217d1fc163ec492f42a188eee5de.zip
initial commit.
Diffstat (limited to 'delete')
-rwxr-xr-xdelete16
1 files changed, 16 insertions, 0 deletions
diff --git a/delete b/delete
new file mode 100755
index 0000000..679f72a
--- /dev/null
+++ b/delete
@@ -0,0 +1,16 @@
+#!/bin/rc
+user=()
+repo=()
+
+fn usage {
+ echo usage: $0 user repo >[1=2]
+ exit usage
+}
+
+if(! ~ $#* 2)
+ usage()
+
+user=$1
+repo=$2
+
+gh/gh DELETE /repos/$user/$repo