-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh_repo.sh
85 lines (69 loc) · 2.43 KB
/
gh_repo.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
if ! is_bin_in_path gh; then
SF_WARNS+=("[gh_issue plugin]: $(__sf_missing_binary_message 'gh')")
return
fi
if [[ $GH_PLUGIN_SOURCED != true ]]; then
SF_WARNS+=("[gh_issue plugin]: $(__sf_missing_plugin_message 'gh')")
return
fi
#
# FUNCTIONS
#
gh_repo_aliases() { __sf_show_plugin_aliases 'gh_repo'; }
#
# ALIASES
#
alias ghrp='gh repo'
alias ghrpa='gh repo archive'
alias ghrpay='gh repo archive --confirm'
alias ghrpcl='gh repo clone'
alias ghrpc='gh repo create'
alias ghrpca='gh repo create --add-readme'
alias ghrpcc='gh repo create --clone'
alias ghrpcdi='gh repo create --disable-issues'
alias ghrpcdw='gh repo create --disable-wiki'
alias ghrpcia='gh repo create --include-all-branches'
alias ghrpci='gh repo create --internal'
alias ghrpcpv='gh repo create --private'
alias ghrpcpb='gh repo create --public'
alias ghrpcps='gh repo create --push'
alias ghrpd='gh repo delete'
alias ghrpdc='gh repo delete --confirm'
alias ghrpdk='gh repo deploy-key'
alias ghrpdka='gh repo deploy-key add'
alias ghrpdkaw='gh repo deploy-key add --allow-write'
alias ghrpdkd='gh repo deploy-key delete'
alias ghrpdkl='gh repo deploy-key list'
alias ghrpe='gh repo edit'
alias ghrpeat='gh repo edit --add-topic'
alias ghrpeaf='gh repo edit --allow-forking'
alias ghrpeau='gh repo edit --allow-update-branch'
alias ghrpedb='gh repo edit --default-branch'
alias ghrpedm='gh repo edit --delete-branch-on-merge'
alias ghrpeds='gh repo edit --description'
alias ghrpeam='gh repo edit --enable-auto-merge'
alias ghrped='gh repo edit --enable-discussions'
alias ghrpei='gh repo edit --enable-issues'
alias ghrpemc='gh repo edit --enable-merge-commit'
alias ghrpep='gh repo edit --enable-projects'
alias ghrperm='gh repo edit --enable-rebase-merge'
alias ghrpesm='gh repo edit --enable-squash-merge'
alias ghrpew='gh repo edit --enable-wiki'
alias ghrpeh='gh repo edit --homepage'
alias ghrpert='gh repo edit --remove-topic'
alias ghrpet='gh repo edit --template'
alias ghrpev='gh repo edit --visibility'
alias ghrpf='gh repo fork'
alias ghrpfc='gh repo fork --clone'
alias ghrpfr='gh repo fork --remote'
alias ghrpl='gh repo list'
alias ghrpla='gh repo list --archived'
alias ghrplf='gh repo list --fork'
alias ghrpln='gh repo list --no-archived'
alias ghrpls='gh repo list --source'
alias ghrpr='gh repo rename'
alias ghrprc='gh repo rename --confirm'
alias ghrps='gh repo sync'
alias ghrpsf='gh repo sync --force'
alias ghrpv='gh repo view'
alias ghrpvw='gh repo view --web'