Skip to content

Commit d4700da

Browse files
authored
Merge pull request #371 from Okabe-Junya/fix-299
feat: implement `ghq rm` command
2 parents 8f42cc3 + 9c9fc5a commit d4700da

File tree

5 files changed

+589
-0
lines changed

5 files changed

+589
-0
lines changed

CREDITS

Lines changed: 338 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,64 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5959

6060
================================================================
6161

62+
github.com/cli/go-gh
63+
https://github.com/cli/go-gh
64+
----------------------------------------------------------------
65+
MIT License
66+
67+
Copyright (c) 2021 GitHub Inc.
68+
69+
Permission is hereby granted, free of charge, to any person obtaining a copy
70+
of this software and associated documentation files (the "Software"), to deal
71+
in the Software without restriction, including without limitation the rights
72+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
73+
copies of the Software, and to permit persons to whom the Software is
74+
furnished to do so, subject to the following conditions:
75+
76+
The above copyright notice and this permission notice shall be included in all
77+
copies or substantial portions of the Software.
78+
79+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
80+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
81+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
82+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
83+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
84+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
85+
SOFTWARE.
86+
87+
================================================================
88+
89+
github.com/cli/safeexec
90+
https://github.com/cli/safeexec
91+
----------------------------------------------------------------
92+
BSD 2-Clause License
93+
94+
Copyright (c) 2020, GitHub Inc.
95+
All rights reserved.
96+
97+
Redistribution and use in source and binary forms, with or without
98+
modification, are permitted provided that the following conditions are met:
99+
100+
1. Redistributions of source code must retain the above copyright notice, this
101+
list of conditions and the following disclaimer.
102+
103+
2. Redistributions in binary form must reproduce the above copyright notice,
104+
this list of conditions and the following disclaimer in the documentation
105+
and/or other materials provided with the distribution.
106+
107+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
108+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
109+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
110+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
111+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
112+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
113+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
114+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
115+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
116+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
117+
118+
================================================================
119+
62120
github.com/cpuguy83/go-md2man/v2
63121
https://github.com/cpuguy83/go-md2man/v2
64122
----------------------------------------------------------------
@@ -86,6 +144,27 @@ SOFTWARE.
86144

87145
================================================================
88146

147+
github.com/davecgh/go-spew
148+
https://github.com/davecgh/go-spew
149+
----------------------------------------------------------------
150+
ISC License
151+
152+
Copyright (c) 2012-2016 Dave Collins <[email protected]>
153+
154+
Permission to use, copy, modify, and/or distribute this software for any
155+
purpose with or without fee is hereby granted, provided that the above
156+
copyright notice and this permission notice appear in all copies.
157+
158+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
159+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
160+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
161+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
162+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
163+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
164+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
165+
166+
================================================================
167+
89168
github.com/daviddengcn/go-colortext
90169
https://github.com/daviddengcn/go-colortext
91170
----------------------------------------------------------------
@@ -312,6 +391,91 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
312391
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
313392

314393

394+
================================================================
395+
396+
github.com/google/go-cmp
397+
https://github.com/google/go-cmp
398+
----------------------------------------------------------------
399+
Copyright (c) 2017 The Go Authors. All rights reserved.
400+
401+
Redistribution and use in source and binary forms, with or without
402+
modification, are permitted provided that the following conditions are
403+
met:
404+
405+
* Redistributions of source code must retain the above copyright
406+
notice, this list of conditions and the following disclaimer.
407+
* Redistributions in binary form must reproduce the above
408+
copyright notice, this list of conditions and the following disclaimer
409+
in the documentation and/or other materials provided with the
410+
distribution.
411+
* Neither the name of Google Inc. nor the names of its
412+
contributors may be used to endorse or promote products derived from
413+
this software without specific prior written permission.
414+
415+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
416+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
417+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
418+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
419+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
420+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
421+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
422+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
423+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
424+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
425+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
426+
427+
================================================================
428+
429+
github.com/kr/pretty
430+
https://github.com/kr/pretty
431+
----------------------------------------------------------------
432+
The MIT License (MIT)
433+
434+
Copyright 2012 Keith Rarick
435+
436+
Permission is hereby granted, free of charge, to any person obtaining a copy
437+
of this software and associated documentation files (the "Software"), to deal
438+
in the Software without restriction, including without limitation the rights
439+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
440+
copies of the Software, and to permit persons to whom the Software is
441+
furnished to do so, subject to the following conditions:
442+
443+
The above copyright notice and this permission notice shall be included in
444+
all copies or substantial portions of the Software.
445+
446+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
447+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
448+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
449+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
450+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
451+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
452+
THE SOFTWARE.
453+
454+
================================================================
455+
456+
github.com/kr/text
457+
https://github.com/kr/text
458+
----------------------------------------------------------------
459+
Copyright 2012 Keith Rarick
460+
461+
Permission is hereby granted, free of charge, to any person obtaining a copy
462+
of this software and associated documentation files (the "Software"), to deal
463+
in the Software without restriction, including without limitation the rights
464+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
465+
copies of the Software, and to permit persons to whom the Software is
466+
furnished to do so, subject to the following conditions:
467+
468+
The above copyright notice and this permission notice shall be included in
469+
all copies or substantial portions of the Software.
470+
471+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
472+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
473+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
474+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
475+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
476+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
477+
THE SOFTWARE.
478+
315479
================================================================
316480

317481
github.com/leodido/go-urn
@@ -409,6 +573,39 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
409573
SOFTWARE.
410574
================================================================
411575

576+
github.com/pmezard/go-difflib
577+
https://github.com/pmezard/go-difflib
578+
----------------------------------------------------------------
579+
Copyright (c) 2013, Patrick Mezard
580+
All rights reserved.
581+
582+
Redistribution and use in source and binary forms, with or without
583+
modification, are permitted provided that the following conditions are
584+
met:
585+
586+
Redistributions of source code must retain the above copyright
587+
notice, this list of conditions and the following disclaimer.
588+
Redistributions in binary form must reproduce the above copyright
589+
notice, this list of conditions and the following disclaimer in the
590+
documentation and/or other materials provided with the distribution.
591+
The names of its contributors may not be used to endorse or promote
592+
products derived from this software without specific prior written
593+
permission.
594+
595+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
596+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
597+
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
598+
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
599+
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
600+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
601+
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
602+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
603+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
604+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
605+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
606+
607+
================================================================
608+
412609
github.com/russross/blackfriday/v2
413610
https://github.com/russross/blackfriday/v2
414611
----------------------------------------------------------------
@@ -470,6 +667,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
470667
SOFTWARE.
471668
================================================================
472669

670+
github.com/stretchr/testify
671+
https://github.com/stretchr/testify
672+
----------------------------------------------------------------
673+
MIT License
674+
675+
Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.
676+
677+
Permission is hereby granted, free of charge, to any person obtaining a copy
678+
of this software and associated documentation files (the "Software"), to deal
679+
in the Software without restriction, including without limitation the rights
680+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
681+
copies of the Software, and to permit persons to whom the Software is
682+
furnished to do so, subject to the following conditions:
683+
684+
The above copyright notice and this permission notice shall be included in all
685+
copies or substantial portions of the Software.
686+
687+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
688+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
689+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
690+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
691+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
692+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
693+
SOFTWARE.
694+
695+
================================================================
696+
473697
github.com/urfave/cli/v2
474698
https://github.com/urfave/cli/v2
475699
----------------------------------------------------------------
@@ -497,6 +721,33 @@ SOFTWARE.
497721

498722
================================================================
499723

724+
github.com/xrash/smetrics
725+
https://github.com/xrash/smetrics
726+
----------------------------------------------------------------
727+
Copyright (C) 2016 Felipe da Cunha Gonçalves
728+
All Rights Reserved.
729+
730+
MIT LICENSE
731+
732+
Permission is hereby granted, free of charge, to any person obtaining a copy of
733+
this software and associated documentation files (the "Software"), to deal in
734+
the Software without restriction, including without limitation the rights to
735+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
736+
the Software, and to permit persons to whom the Software is furnished to do so,
737+
subject to the following conditions:
738+
739+
The above copyright notice and this permission notice shall be included in all
740+
copies or substantial portions of the Software.
741+
742+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
743+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
744+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
745+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
746+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
747+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
748+
749+
================================================================
750+
500751
golang.org/x/crypto
501752
https://golang.org/x/crypto
502753
----------------------------------------------------------------
@@ -662,3 +913,90 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
662913

663914
================================================================
664915

916+
gopkg.in/check.v1
917+
https://gopkg.in/check.v1
918+
----------------------------------------------------------------
919+
Gocheck - A rich testing framework for Go
920+
921+
Copyright (c) 2010-2013 Gustavo Niemeyer <[email protected]>
922+
923+
All rights reserved.
924+
925+
Redistribution and use in source and binary forms, with or without
926+
modification, are permitted provided that the following conditions are met:
927+
928+
1. Redistributions of source code must retain the above copyright notice, this
929+
list of conditions and the following disclaimer.
930+
2. Redistributions in binary form must reproduce the above copyright notice,
931+
this list of conditions and the following disclaimer in the documentation
932+
and/or other materials provided with the distribution.
933+
934+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
935+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
936+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
937+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
938+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
939+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
940+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
941+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
942+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
943+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
944+
945+
================================================================
946+
947+
gopkg.in/yaml.v3
948+
https://gopkg.in/yaml.v3
949+
----------------------------------------------------------------
950+
951+
This project is covered by two different licenses: MIT and Apache.
952+
953+
#### MIT License ####
954+
955+
The following files were ported to Go from C files of libyaml, and thus
956+
are still covered by their original MIT license, with the additional
957+
copyright staring in 2011 when the project was ported over:
958+
959+
apic.go emitterc.go parserc.go readerc.go scannerc.go
960+
writerc.go yamlh.go yamlprivateh.go
961+
962+
Copyright (c) 2006-2010 Kirill Simonov
963+
Copyright (c) 2006-2011 Kirill Simonov
964+
965+
Permission is hereby granted, free of charge, to any person obtaining a copy of
966+
this software and associated documentation files (the "Software"), to deal in
967+
the Software without restriction, including without limitation the rights to
968+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
969+
of the Software, and to permit persons to whom the Software is furnished to do
970+
so, subject to the following conditions:
971+
972+
The above copyright notice and this permission notice shall be included in all
973+
copies or substantial portions of the Software.
974+
975+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
976+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
977+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
978+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
979+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
980+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
981+
SOFTWARE.
982+
983+
### Apache License ###
984+
985+
All the remaining project files are covered by the Apache license:
986+
987+
Copyright (c) 2011-2019 Canonical Ltd
988+
989+
Licensed under the Apache License, Version 2.0 (the "License");
990+
you may not use this file except in compliance with the License.
991+
You may obtain a copy of the License at
992+
993+
http://www.apache.org/licenses/LICENSE-2.0
994+
995+
Unless required by applicable law or agreed to in writing, software
996+
distributed under the License is distributed on an "AS IS" BASIS,
997+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
998+
See the License for the specific language governing permissions and
999+
limitations under the License.
1000+
1001+
================================================================
1002+

0 commit comments

Comments
 (0)