-
Notifications
You must be signed in to change notification settings - Fork 17
/
gh.sh
3221 lines (2942 loc) · 133 KB
/
gh.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @flag --help Show help for command
# @flag --version Show gh version
# {{ gh auth
# @cmd Authenticate gh and git with GitHub
# @flag --help Show help for command
auth() {
:;
}
# {{{ gh auth login
# @cmd Log in to a GitHub account
# @option -p --git-protocol[ssh|https] <string> The protocol to use for git operations on this host:
# @option -h --hostname[`_choice_hostname`] <string> The hostname of the GitHub instance to authenticate with
# @flag --insecure-storage Save authentication credentials in plain text instead of credential store
# @option -s --scopes*,[`_choice_auth_scope`] <string> Additional authentication scopes to request
# @flag --skip-ssh-key Skip generate/upload SSH key prompt
# @flag -w --web Open a browser to authenticate
# @flag --with-token Read token from standard input
# @flag --help Show help for command
auth::login() {
:;
}
# }}} gh auth login
# {{{ gh auth logout
# @cmd Log out of a GitHub account
# @option -h --hostname[`_choice_hostname`] <string> The hostname of the GitHub instance to log out of
# @option -u --user <string> The account to log out of
# @flag --help Show help for command
auth::logout() {
:;
}
# }}} gh auth logout
# {{{ gh auth refresh
# @cmd Refresh stored authentication credentials
# @option -h --hostname[`_choice_hostname`] <string> The GitHub host to use for authentication
# @flag --insecure-storage Save authentication credentials in plain text instead of credential store
# @option -r --remove-scopes* <string> Authentication scopes to remove from gh
# @flag --reset-scopes Reset authentication scopes to the default minimum set of scopes
# @option -s --scopes*,[`_choice_auth_scope`] <string> Additional authentication scopes for gh to have
# @flag --help Show help for command
auth::refresh() {
:;
}
# }}} gh auth refresh
# {{{ gh auth setup-git
# @cmd Setup git with GitHub CLI
# @option -f[`_choice_hostname`] Force setup even if the host is not known.
# @option --force[`_choice_hostname`] Force setup even if the host is not known.
# @option --hostname[`_choice_hostname`] Force setup even if the host is not known.
# @flag --help Show help for command
auth::setup-git() {
:;
}
# }}} gh auth setup-git
# {{{ gh auth status
# @cmd Display active account and authentication state on each known GitHub host
# @option -h --hostname[`_choice_hostname`] <string> Check only a specific hostname's auth status
# @flag -t --show-token Display the auth token
# @flag --help Show help for command
auth::status() {
:;
}
# }}} gh auth status
# {{{ gh auth switch
# @cmd Switch active GitHub account
# @option -h --hostname[`_choice_hostname`] <string> The hostname of the GitHub instance to switch account for
# @option -u --user <string> The account to switch to
# @flag --help Show help for command
auth::switch() {
:;
}
# }}} gh auth switch
# {{{ gh auth token
# @cmd Print the authentication token gh uses for a hostname and account
# @option -h --hostname[`_choice_hostname`] <string> The hostname of the GitHub instance authenticated with
# @option -u --user <string> The account to output the token for
# @flag --help Show help for command
auth::token() {
:;
}
# }}} gh auth token
# }} gh auth
# {{ gh browse
# @cmd Open the repository in the browser
# @option -b --branch[`_choice_branch`] <string> Select another branch by passing in the branch name
# @option -c --commit <string[="last"]> Select another commit by passing in the commit SHA, default is the last commit
# @flag -n --no-browser Print destination URL instead of opening the browser
# @flag -p --projects Open repository projects
# @flag -r --releases Open repository releases
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @flag -s --settings Open repository settings
# @flag -w --wiki Open repository wiki
# @flag --help Show help for command
# @arg number-path-commit-sha <<number>|<path>|<commit-SHA>>
browse() {
:;
}
# }} gh browse
# {{ gh codespace
# @cmd Connect to and manage codespaces
# @flag --help Show help for command
codespace() {
:;
}
# {{{ gh codespace code
# @cmd Open a codespace in Visual Studio Code
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag --insiders Use the insiders version of Visual Studio Code
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag -w --web Use the web version of Visual Studio Code
# @flag --help Show help for command
codespace::code() {
:;
}
# }}} gh codespace code
# {{{ gh codespace cp
# @cmd Copy files between local and remote file systems
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag -e --expand Expand remote file names on remote shell
# @option -p --profile <file> Name of the SSH profile to use
# @flag -r --recursive Recursively copy directories
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag --help Show help for command
# @arg sources+
# @arg dest!
codespace::cp() {
:;
}
# }}} gh codespace cp
# {{{ gh codespace create
# @cmd Create a codespace
# @option -b --branch[`_choice_branch`] <string> repository branch
# @flag --default-permissions do not prompt to accept additional permissions requested by the codespace
# @option --devcontainer-path <file> path to the devcontainer.json file to use when creating codespace
# @option -d --display-name <string> display name for the codespace (48 characters or less)
# @option --idle-timeout <duration> allowed inactivity before codespace is stopped, e.g. "10m", "1h"
# @option -l --location[EastUs|SouthEastAsia|WestEurope|WestUs2] <path> location: (determined automatically if not provided)
# @option -m --machine <string> hardware specifications for the VM
# @option -R --repo[`_choice_search_repo`] <string> repository name with owner: user/repo
# @option --retention-period <duration> allowed time after shutting down before the codespace is automatically deleted (maximum 30 days), e.g. "1h", "72h"
# @flag -s --status show status of post-create command and dotfiles
# @flag -w --web create codespace from browser, cannot be used with --display-name, --idle-timeout, or --retention-period
# @flag --help Show help for command
codespace::create() {
:;
}
# }}} gh codespace create
# {{{ gh codespace delete
# @cmd Delete codespaces
# @flag --all Delete all codespaces
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option --days <N> Delete codespaces older than N days
# @flag -f --force Skip confirmation for codespaces that contain unsaved changes
# @option -o --org[`_choice_org`] <login> The login handle of the organization (admin-only)
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @option -u --user[`_choice_search_user`] <username> The username to delete codespaces for (used with --org)
# @flag --help Show help for command
codespace::delete() {
:;
}
# }}} gh codespace delete
# {{{ gh codespace edit
# @cmd Edit a codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option -d --display-name <string> Set the display name
# @option -m --machine <string> Set hardware specifications for the VM
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag --help Show help for command
codespace::edit() {
:;
}
# }}} gh codespace edit
# {{{ gh codespace jupyter
# @cmd Open a codespace in JupyterLab
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag --help Show help for command
codespace::jupyter() {
:;
}
# }}} gh codespace jupyter
# {{{ gh codespace list
# @cmd List codespaces
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json[`_choice_codespace_field`] <fields> Output JSON with the specified fields
# @option -L --limit <int> Maximum number of codespaces to list (default 30)
# @option -o --org[`_choice_org`] <login> The login handle of the organization to list codespaces for (admin-only)
# @option -R --repo[`_choice_search_repo`] <string> Repository name with owner: user/repo
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @option -u --user[`_choice_search_user`] <username> The username to list codespaces for (used with --org)
# @flag -w --web List codespaces in the web browser, cannot be used with --user or --org
# @flag --help Show help for command
codespace::list() {
:;
}
# }}} gh codespace list
# {{{ gh codespace logs
# @cmd Access codespace logs
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag -f --follow Tail and follow the logs
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag --help Show help for command
codespace::logs() {
:;
}
# }}} gh codespace logs
# {{{ gh codespace ports
# @cmd List ports in a codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json[`_choice_codespace_field`] <fields> Output JSON with the specified fields
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --help Show help for command
codespace::ports() {
:;
}
# {{{{ gh codespace ports forward
# @cmd Forward ports
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @arg remote-port-local-port* <<remote-port>:<local-port>>
codespace::ports::forward() {
:;
}
# }}}} gh codespace ports forward
# {{{{ gh codespace ports visibility
# @cmd Change the visibility of the forwarded port
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @arg port-public-private-org* <<port>:{public|private|org}>
codespace::ports::visibility() {
:;
}
# }}}} gh codespace ports visibility
# }}} gh codespace ports
# {{{ gh codespace rebuild
# @cmd Rebuild a codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag --full perform a full rebuild
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @flag --help Show help for command
codespace::rebuild() {
:;
}
# }}} gh codespace rebuild
# {{{ gh codespace ssh
# @cmd SSH into a codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @flag --config Write OpenSSH configuration to stdout
# @flag -d --debug Log debug data to a file
# @option --debug-file <file> Path of the file log to
# @option --profile <file> Name of the SSH profile to use
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @option --server-port <int> SSH server port number (0 => pick unused)
# @flag --help Show help for command
# @arg command[`_module_os_command`]
codespace::ssh() {
:;
}
# }}} gh codespace ssh
# {{{ gh codespace stop
# @cmd Stop a running codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option -o --org[`_choice_org`] <login> The login handle of the organization (admin-only)
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @option -u --user[`_choice_search_user`] <username> The username to stop codespace for (used with --org)
# @flag --help Show help for command
codespace::stop() {
:;
}
# }}} gh codespace stop
# {{{ gh codespace view
# @cmd View details about a codespace
# @option -c --codespace[`_choice_codespace`] <string> Name of the codespace
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json[`_choice_codespace_field`] <fields> Output JSON with the specified fields
# @option -R --repo[`_choice_search_repo`] <string> Filter codespace selection by repository name (user/repo)
# @option --repo-owner[`_choice_owner`] <string> Filter codespace selection by repository owner (username or org)
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --help Show help for command
codespace::view() {
:;
}
# }}} gh codespace view
# }} gh codespace
# {{ gh gist
# @cmd Manage gists
# @flag --help Show help for command
gist() {
:;
}
# {{{ gh gist clone
# @cmd Clone a gist locally
# @flag --help Show help for command
# @arg gist![`_choice_gist`]
# @arg directory
gist::clone() {
:;
}
# }}} gh gist clone
# {{{ gh gist create
# @cmd Create a new gist
# @option -d --desc <string> A description for this gist
# @option -f --filename <file> Provide a filename to be used when reading from standard input
# @flag -p --public List the gist publicly (default "secret")
# @flag -w --web Open the web browser with created gist
# @flag --help Show help for command
# @arg filename <<filename>...|->
gist::create() {
:;
}
# }}} gh gist create
# {{{ gh gist delete
# @cmd Delete a gist
# @flag --help Show help for command
# @arg gist[`_choice_gist`]
gist::delete() {
:;
}
# }}} gh gist delete
# {{{ gh gist edit
# @cmd Edit one of your gists
# @option -a --add <file> Add a new file to the gist
# @option -d --desc <string> New description for the gist
# @option -f --filename[`_choice_gist_file`] <file> Select a file to edit
# @option -r --remove <file> Remove a file from the gist
# @flag --help Show help for command
# @arg gist[`_choice_gist`]
# @arg filename[`_choice_gist_file`]
gist::edit() {
:;
}
# }}} gh gist edit
# {{{ gh gist list
# @cmd List your gists
# @option -L --limit <int> Maximum number of gists to fetch (default 10)
# @flag --public Show only public gists
# @flag --secret Show only secret gists
# @flag --help Show help for command
gist::list() {
:;
}
# }}} gh gist list
# {{{ gh gist rename
# @cmd Rename a file in a gist
# @flag --help Show help for command
# @arg gist[`_choice_gist`]
# @arg oldfilename![`_choice_gist_file`]
# @arg newfilename!
gist::rename() {
:;
}
# }}} gh gist rename
# {{{ gh gist view
# @cmd View a gist
# @option -f --filename[`_choice_gist_file`] <file> Display a single file from the gist
# @flag --files List file names from the gist
# @flag -r --raw Print raw instead of rendered gist contents
# @flag -w --web Open gist in the browser
# @flag --help Show help for command
# @arg gist[`_choice_gist`]
gist::view() {
:;
}
# }}} gh gist view
# }} gh gist
# {{ gh issue
# @cmd Manage issues
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @flag --help Show help for command
issue() {
:;
}
# {{{ gh issue create
# @cmd Create a new issue
# @option -a --assignee*,[`_choice_assignee`] <login> Assign people by their login.
# @option -b --body <string> Supply a body.
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag -e --editor Skip prompts and open the text editor to write the title and body in.
# @option -l --label*,[`_choice_label`] <name> Add labels by name
# @option -m --milestone[`_choice_milestone`] <name> Add the issue to a milestone by name
# @option -p --project[`_choice_repo_project`] <name> Add the issue to projects by name
# @option --recover <string> Recover input from a failed run of create
# @option -T --template[`_choice_issue_template`] <file> Template file to use as starting body text
# @option -t --title <string> Supply a title.
# @flag -w --web Open the browser to create an issue
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
issue::create() {
:;
}
# }}} gh issue create
# {{{ gh issue list
# @cmd List issues in a repository
# @option --app <string> Filter by GitHub App author
# @option -a --assignee*,[`_choice_assignee`] <string> Filter by assignee
# @option -A --author[`_choice_search_user`] <string> Filter by author
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_issue_field`] <fields> Output JSON with the specified fields
# @option -l --label*,[`_choice_label`] <string> Filter by label
# @option -L --limit <int> Maximum number of issues to fetch (default 30)
# @option --mention[`_choice_mention`] <string> Filter by mention
# @option -m --milestone[`_choice_milestone`] <string> Filter by milestone number or title
# @option -S --search <query> Search issues with query
# @option -s --state[open|closed|all] <string> Filter by state: (default "open")
# @option -t --template[`_choice_issue_template`] <string> Format JSON output using a Go template; see "gh help formatting"
# @flag -w --web List issues in the web browser
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
issue::list() {
:;
}
# }}} gh issue list
# {{{ gh issue status
# @cmd Show status of relevant issues
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_issue_field`] <fields> Output JSON with the specified fields
# @option -t --template[`_choice_issue_template`] <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
issue::status() {
:;
}
# }}} gh issue status
# {{{ gh issue close
# @cmd Close issue
# @option -c --comment <string> Leave a closing comment
# @option -r --reason <string> Reason for closing: {completed|not planned}
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::close() {
:;
}
# }}} gh issue close
# {{{ gh issue comment
# @cmd Add a comment to an issue
# @option -b --body <text> The comment body text
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag --edit-last Edit the last comment of the same author
# @flag -e --editor Skip prompts and open the text editor to write the body in
# @flag -w --web Open the web browser to write the comment
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::comment() {
:;
}
# }}} gh issue comment
# {{{ gh issue delete
# @cmd Delete issue
# @flag --yes confirm deletion without prompting
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_all_issue`]
issue::delete() {
:;
}
# }}} gh issue delete
# {{{ gh issue develop
# @cmd Manage linked branches for an issue
# @option -b --base[`_choice_branch`] <string> Name of the base branch you want to make your new branch from
# @option --branch-repo <string> Name or URL of the repository where you want to create your new branch
# @flag -c --checkout Checkout the branch after creating it
# @flag -l --list List linked branches for the issue
# @option -n --name[`_choice_branch`] <string> Name of the branch to create
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::develop() {
:;
}
# }}} gh issue develop
# {{{ gh issue edit
# @cmd Edit issues
# @option --add-assignee*,[`_choice_assignee`] <login> Add assigned users by their login.
# @option --add-label*,[`_choice_label`] <name> Add labels by name
# @option --add-project*,[`_choice_repo_project`] <name> Add the issue to projects by name
# @option -b --body <string> Set the new body.
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @option -m --milestone[`_choice_milestone`] <name> Edit the milestone the issue belongs to by name
# @option --remove-assignee*,[`_choice_issue_assignee`] <login> Remove assigned users by their login.
# @option --remove-label*,[`_choice_issue_label`] <name> Remove labels by name
# @flag --remove-milestone Remove the milestone association from the issue
# @option --remove-project*,[`_choice_issue_project`] <name> Remove the issue from projects by name
# @option -t --title <string> Set the new title.
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::edit() {
:;
}
# }}} gh issue edit
# {{{ gh issue lock
# @cmd Lock issue conversation
# @option -r --reason[off_topic|resolved|spam|too_heated] <string> Optional reason for locking conversation.
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_all_issue`]
issue::lock() {
:;
}
# }}} gh issue lock
# {{{ gh issue pin
# @cmd Pin a issue
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::pin() {
:;
}
# }}} gh issue pin
# {{{ gh issue reopen
# @cmd Reopen issue
# @option -c --comment <string> Add a reopening comment
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_closed_issue`]
issue::reopen() {
:;
}
# }}} gh issue reopen
# {{{ gh issue transfer
# @cmd Transfer issue to another repository
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_all_issue`]
# @arg destination-repo![`_choice_search_repo`]
issue::transfer() {
:;
}
# }}} gh issue transfer
# {{{ gh issue unlock
# @cmd Unlock issue conversation
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_all_issue`]
issue::unlock() {
:;
}
# }}} gh issue unlock
# {{{ gh issue unpin
# @cmd Unpin a issue
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_pin_issue`]
issue::unpin() {
:;
}
# }}} gh issue unpin
# {{{ gh issue view
# @cmd View an issue
# @flag -c --comments View issue comments
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_issue_field`] <fields> Output JSON with the specified fields
# @option -t --template[`_choice_issue_template`] <string> Format JSON output using a Go template; see "gh help formatting"
# @flag -w --web Open an issue in the browser
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg issue[`_choice_open_issue`]
issue::view() {
:;
}
# }}} gh issue view
# }} gh issue
# {{ gh org
# @cmd Manage organizations
# @flag --help Show help for command
org() {
:;
}
# {{{ gh org list
# @cmd List organizations for the authenticated user.
# @option -L --limit <int> Maximum number of organizations to list (default 30)
# @flag --help Show help for command
org::list() {
:;
}
# }}} gh org list
# }} gh org
# {{ gh pr
# @cmd Manage pull requests
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @flag --help Show help for command
pr() {
:;
}
# {{{ gh pr create
# @cmd Create a pull request
# @option -a --assignee*,[`_choice_assignee`] <login> Assign people by their login.
# @option -B --base[`_choice_branch`] <branch> The branch into which you want your code merged
# @option -b --body <string> Body for the pull request
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag -d --draft Mark pull request as a draft
# @flag --dry-run Print details instead of creating the PR.
# @flag -f --fill Use commit info for title and body
# @flag --fill-first Use first commit info for title and body
# @flag --fill-verbose Use commits msg+body for description
# @option -H --head[`_choice_branch`] <branch> The branch that contains commits for your pull request (default [current branch])
# @option -l --label*,[`_choice_label`] <name> Add labels by name
# @option -m --milestone[`_choice_milestone`] <name> Add the pull request to a milestone by name
# @flag --no-maintainer-edit Disable maintainer's ability to modify pull request
# @option -p --project*,[`_choice_repo_project`] <name> Add the pull request to projects by name
# @option --recover <string> Recover input from a failed run of create
# @option -r --reviewer*,[`_choice_assignee`] <handle> Request reviews from people or teams by their handle
# @option -T --template <file> Template file to use as starting body text
# @option -t --title <string> Title for the pull request
# @flag -w --web Open the web browser to create a pull request
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
pr::create() {
:;
}
# }}} gh pr create
# {{{ gh pr list
# @cmd List pull requests in a repository
# @option --app <string> Filter by GitHub App author
# @option -a --assignee*,[`_choice_assignee`] <string> Filter by assignee
# @option -A --author[`_choice_search_user`] <string> Filter by author
# @option -B --base[`_choice_branch`] <string> Filter by base branch
# @flag -d --draft Filter by draft state
# @option -H --head[`_choice_branch`] <string> Filter by head branch
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_pr_field`] <fields> Output JSON with the specified fields
# @option -l --label*,[`_choice_label`] <string> Filter by label
# @option -L --limit <int> Maximum number of items to fetch (default 30)
# @option -S --search <query> Search pull requests with query
# @option -s --state[open|closed|merged|all] <string> Filter by state: (default "open")
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag -w --web List pull requests in the web browser
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
pr::list() {
:;
}
# }}} gh pr list
# {{{ gh pr status
# @cmd Show status of relevant pull requests
# @flag -c --conflict-status Display the merge conflict status of each pull request
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_pr_field`] <fields> Output JSON with the specified fields
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
pr::status() {
:;
}
# }}} gh pr status
# {{{ gh pr checkout
# @cmd Check out a pull request in git
# @option -b --branch[`_choice_branch`] <string> Local branch name to use (default [the name of the head branch])
# @flag --detach Checkout PR with a detached HEAD
# @flag -f --force Reset the existing local branch to the latest state of the pull request
# @flag --recurse-submodules Update all submodules after checkout
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::checkout() {
:;
}
# }}} gh pr checkout
# {{{ gh pr checks
# @cmd Show CI status for a single pull request
# @flag --fail-fast Exit watch mode on first check failure
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_pr_field`] <fields> Output JSON with the specified fields
# @flag --required Only show checks that are required
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --watch Watch checks until they finish
# @flag -w --web Open the web browser to show details about checks
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_pr_checks`]
pr::checks() {
:;
}
# }}} gh pr checks
# {{{ gh pr close
# @cmd Close a pull request
# @option -c --comment <string> Leave a closing comment
# @flag -d --delete-branch Delete the local and remote branch after close
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::close() {
:;
}
# }}} gh pr close
# {{{ gh pr comment
# @cmd Add a comment to a pull request
# @option -b --body <text> The comment body text
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag --edit-last Edit the last comment of the same author
# @flag -e --editor Skip prompts and open the text editor to write the body in
# @flag -w --web Open the web browser to write the comment
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::comment() {
:;
}
# }}} gh pr comment
# {{{ gh pr diff
# @cmd View changes in a pull request
# @option --color[always|never|auto] <string> Use color in diff output: (default "auto")
# @flag --name-only Display only names of changed files
# @flag --patch Display diff in patch format
# @flag -w --web Open the pull request diff in the browser
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::diff() {
:;
}
# }}} gh pr diff
# {{{ gh pr edit
# @cmd Edit a pull request
# @option --add-assignee*,[`_choice_assignee`] <login> Add assigned users by their login.
# @option --add-label*,[`_choice_label`] <name> Add labels by name
# @option --add-project*,[`_choice_repo_project`] <name> Add the pull request to projects by name
# @option --add-reviewer*,[`_choice_assignee`] <login> Add reviewers by their login.
# @option -B --base[`_choice_branch`] <branch> Change the base branch for this pull request
# @option -b --body <string> Set the new body.
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @option -m --milestone[`_choice_milestone`] <name> Edit the milestone the pull request belongs to by name
# @option --remove-assignee*,[`_choice_pr_assignee`] <login> Remove assigned users by their login.
# @option --remove-label*,[`_choice_pr_label`] <name> Remove labels by name
# @flag --remove-milestone Remove the milestone association from the pull request
# @option --remove-project*,[`_choice_pr_project`] <name> Remove the pull request from projects by name
# @option --remove-reviewer*,[`_choice_pr_reviewer`] <login> Remove reviewers by their login.
# @option -t --title <string> Set the new title.
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::edit() {
:;
}
# }}} gh pr edit
# {{{ gh pr lock
# @cmd Lock pull request conversation
# @option -r --reason[off_topic|resolved|spam|too_heated] <string> Optional reason for locking conversation.
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::lock() {
:;
}
# }}} gh pr lock
# {{{ gh pr merge
# @cmd Merge a pull request
# @flag --admin Use administrator privileges to merge a pull request that does not meet requirements
# @option -A --author-email <text> Email text for merge commit author
# @flag --auto Automatically merge only after necessary requirements are met
# @option -b --body <text> Body text for the merge commit
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag -d --delete-branch Delete the local and remote branch after merge
# @flag --disable-auto Disable auto-merge for this pull request
# @option --match-head-commit[`_choice_pr_commit`] <SHA> Commit SHA that the pull request head must match to allow merge
# @flag -m --merge Merge the commits with the base branch
# @flag -r --rebase Rebase the commits onto the base branch
# @flag -s --squash Squash the commits into one commit and merge it into the base branch
# @option -t --subject <text> Subject text for the merge commit
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::merge() {
:;
}
# }}} gh pr merge
# {{{ gh pr ready
# @cmd Mark a pull request as ready for review
# @flag --undo Convert a pull request to "draft"
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_ready_pr`]
pr::ready() {
:;
}
# }}} gh pr ready
# {{{ gh pr reopen
# @cmd Reopen a pull request
# @option -c --comment <string> Add a reopening comment
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_closed_pr`]
pr::reopen() {
:;
}
# }}} gh pr reopen
# {{{ gh pr review
# @cmd Add a review to a pull request
# @flag -a --approve Approve pull request
# @option -b --body <string> Specify the body of a review
# @option -F --body-file <file> Read body text from file (use "-" to read from standard input)
# @flag -c --comment Comment on a pull request
# @flag -r --request-changes Request changes on a pull request
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::review() {
:;
}
# }}} gh pr review
# {{{ gh pr unlock
# @cmd Unlock pull request conversation
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::unlock() {
:;
}
# }}} gh pr unlock
# {{{ gh pr update-branch
# @cmd Update a pull request branch
# @flag --rebase Update PR branch by rebasing on top of latest base branch
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg number-url-branch <<number>|<url>|<branch>>
pr::update-branch() {
:;
}
# }}} gh pr update-branch
# {{{ gh pr view
# @cmd View a pull request
# @flag -c --comments View pull request comments
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --json*,[`_choice_pr_field`] <fields> Output JSON with the specified fields
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag -w --web Open a pull request in the browser
# @flag --help Show help for command
# @option -R --repo[`_choice_search_repo`] <[HOST/]OWNER/REPO> Select another repository using the [HOST/]OWNER/REPO format
# @arg pr[`_choice_open_pr`]
pr::view() {
:;
}
# }}} gh pr view
# }} gh pr
# {{ gh project
# @cmd Work with GitHub Projects.
# @flag --help Show help for command
project() {
:;
}
# {{{ gh project close
# @cmd Close a project
# @option --format[json] <string> Output format: {json}
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --owner[`_choice_owner`] <string> Login of the owner.
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --undo Reopen a closed project
# @flag --help Show help for command
# @arg project[`_choice_project`]
project::close() {
:;
}
# }}} gh project close
# {{{ gh project copy
# @cmd Copy a project
# @flag --drafts Include draft issues when copying
# @option --format[json] <string> Output format: {json}
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --source-owner[`_choice_owner`] <string> Login of the source owner.
# @option --target-owner[`_choice_owner`] <string> Login of the target owner.
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @option --title <string> Title for the new project
# @flag --help Show help for command
# @arg project[`_choice_project`]
project::copy() {
:;
}
# }}} gh project copy
# {{{ gh project create
# @cmd Create a project
# @option --format[json] <string> Output format: {json}
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --owner[`_choice_owner`] <string> Login of the owner.
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @option --title <string> Title for the project
# @flag --help Show help for command
project::create() {
:;
}
# }}} gh project create
# {{{ gh project delete
# @cmd Delete a project
# @option --format[json] <string> Output format: {json}
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --owner[`_choice_owner`] <string> Login of the owner.
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @flag --help Show help for command
# @arg project[`_choice_project`]
project::delete() {
:;
}
# }}} gh project delete
# {{{ gh project edit
# @cmd Edit a project
# @option -d --description <string> New description of the project
# @option --format[json] <string> Output format: {json}
# @option -q --jq <expression> Filter JSON output using a jq expression
# @option --owner[`_choice_owner`] <string> Login of the owner.
# @option --readme <string> New readme for the project
# @option -t --template <string> Format JSON output using a Go template; see "gh help formatting"
# @option --title <string> New title for the project
# @option --visibility[PUBLIC|PRIVATE] <string> Change project visibility:
# @flag --help Show help for command
# @arg project[`_choice_project`]
project::edit() {