blob: 438d341b5357484a4b4946f0c20536e904b8cb4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|