├── .github
└── workflows
│ └── rolling-release.yml
├── .gitignore
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── cmd
├── genres.go
├── profile.go
├── requests.go
├── retry-all.go
├── root.go
├── search.go
└── version.go
├── example.gif
├── go.mod
├── go.sum
├── help.png
├── overclirr.go
├── ui
├── boxes.go
├── common.go
├── image.go
├── input.go
├── loading.go
└── selection.go
└── utility
├── debugging.go
├── profiles.go
└── validators.go
/.github/workflows/rolling-release.yml:
--------------------------------------------------------------------------------
1 | name: "Release OverCLIrr"
2 |
3 | on:
4 | release:
5 | types: [edited, created]
6 |
7 | jobs:
8 | release-binary:
9 | name: Release Binary
10 | runs-on: ubuntu-latest
11 | strategy:
12 | matrix:
13 | goos: [darwin, linux, windows]
14 | goarch: ["386", amd64, arm64]
15 | exclude:
16 | - goarch: "386"
17 | goos: darwin
18 | - goarch: "arm64"
19 | goos: darwin
20 | - goarch: "arm64"
21 | goos: windows
22 | steps:
23 | - name: Checkout
24 | uses: actions/checkout@v2
25 | - name: Extract Tag Name
26 | shell: bash
27 | run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
28 | id: extract_tag
29 | - name: Build & Release
30 | uses: wangyoucao577/go-release-action@v1.17
31 | with:
32 | project_path: .
33 | binary_name: overclirr
34 | ldflags: -X "github.com/willfantom/overclirr/cmd.version=${{ steps.extract_tag.outputs.tag }}"
35 | executable_compression: upx
36 | sha256sum: true
37 | md5sum: true
38 | overwrite: true
39 | github_token: ${{ secrets.GITHUB_TOKEN }}
40 | goos: ${{ matrix.goos }}
41 | goarch: ${{ matrix.goarch }}
42 | goversion: 1.16
43 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | overclirr
2 |
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "cSpell.words": [
3 | "overseerr"
4 | ]
5 | }
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Overseerr CLI (OverCLIrr)
2 |
3 | A command-line client application for interacting with an [Overseerr](https://overseerr.dev) server!
4 |
5 | > ⚠️ This is a work in progress
6 |
7 | 
8 |
9 | ## Features
10 |
11 | For Admins:
12 | - Manage requests
13 | - View
14 | - Approve/Decline
15 | - Delete
16 | - Retry (resend to sonarr/radarr)
17 | - Retry all requests
18 | - Single command to resend all non-available requests to the service
19 |
20 | For any user:
21 | - Search for new tv shows/movies/people
22 | - Check the Overseerr version
23 | - Search for/list acceptable genres
24 |
25 | ## Install
26 |
27 | Using `brew` on MacOS:
28 |
29 | ```bash
30 | brew install willfantom/overclirr/overclirr
31 | ```
32 |
33 | Download from Github:
34 |
35 | - Download the release for your platform
36 | - Extract the binary
37 | - Make the binary executable (e.g. `chmod +x ...`)
38 | - Copy the binary to a `PATH` dir (e.g. `/bin`)
39 |
40 | Build from source:
41 |
42 | ```bash
43 | go mod download
44 | go build -o overclirr .
45 | ```
46 |
47 | ## Usage
48 |
49 | To create your first login profile, just run: `overclirr add-profile`
50 |
51 | 
52 |
--------------------------------------------------------------------------------
/cmd/genres.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/lithammer/fuzzysearch/fuzzy"
7 | "github.com/sirupsen/logrus"
8 | "github.com/spf13/cobra"
9 | "github.com/willfantom/goverseerr"
10 | "github.com/willfantom/overclirr/ui"
11 | )
12 |
13 | var genreCmd = &cobra.Command{
14 | Use: "genres [tv/movie]",
15 | Aliases: []string{"genre"},
16 | Short: "Get a list of all tv/movie genres available",
17 | ValidArgs: []string{"tv", "movie"},
18 | Args: cobra.ExactValidArgs(1),
19 | PreRun: func(cmd *cobra.Command, args []string) {
20 | setOverseer(overseerrProfileName)
21 | },
22 | Run: func(cmd *cobra.Command, args []string) {
23 | var genreList []*goverseerr.Genre
24 | var err error
25 | switch args[0] {
26 | case "tv":
27 | genreList, err = overseerr.TVGenres()
28 | case "movie":
29 | genreList, err = overseerr.MovieGenres()
30 | default:
31 | logrus.WithField("givenArg", args[0]).
32 | Panicln("Invalid genre argument got past argument validator")
33 | }
34 | if err != nil {
35 | ui.Fatal("Could not get genre list from Overseerr instance", err)
36 | }
37 | logrus.WithField("genreCount", len(genreList)).Debug("collected genre list")
38 | var tableValues = [][]string{
39 | {"ID", "Name"},
40 | }
41 | for _, genre := range genreList {
42 | tableValues = append(tableValues, []string{fmt.Sprintf("%d", genre.ID), genre.Name})
43 | }
44 | ui.Table(tableValues)
45 | },
46 | }
47 |
48 | var genreSearchCmd = &cobra.Command{
49 | Use: "genre-search [search_term]",
50 | Short: "Check if a genre exists",
51 | Args: cobra.ExactArgs(1),
52 | PreRun: func(cmd *cobra.Command, args []string) {
53 | setOverseer(overseerrProfileName)
54 | },
55 | Run: func(cmd *cobra.Command, args []string) {
56 | tvGenreList, movieGenreList := searchGenre(args[0])
57 | var tableValues = [][]string{
58 | {"Type", "ID", "Name"},
59 | }
60 | for _, genre := range tvGenreList {
61 | if fuzzy.MatchNormalizedFold(args[0], genre.Name) {
62 | tableValues = append(tableValues, []string{"TV", fmt.Sprintf("%d", genre.ID), genre.Name})
63 | }
64 | }
65 | for _, genre := range movieGenreList {
66 | if fuzzy.MatchNormalizedFold(args[0], genre.Name) {
67 | tableValues = append(tableValues, []string{"Movie", fmt.Sprintf("%d", genre.ID), genre.Name})
68 | }
69 | }
70 | ui.Table(tableValues)
71 | },
72 | }
73 |
74 | func searchGenre(searchTerm string) ([]*goverseerr.Genre, []*goverseerr.Genre) {
75 | logrus.WithField("searchTerm", searchTerm).Traceln("searching for genre id")
76 | tvGenreList, err := overseerr.TVGenres()
77 | if err != nil {
78 | ui.Fatal("Could not get Genre list from Overseerr instance", err)
79 | }
80 | movieGenreList, err := overseerr.MovieGenres()
81 | if err != nil {
82 | ui.Fatal("Could not get Genre list from Overseerr instance", err)
83 | }
84 | logrus.WithFields(logrus.Fields{
85 | "tv-genres": len(tvGenreList),
86 | "movie-genres": len(movieGenreList),
87 | }).Debug("collected genre lists")
88 | return tvGenreList, movieGenreList
89 | }
90 |
91 | func init() {
92 | RootCmd.AddCommand(genreCmd)
93 | RootCmd.AddCommand(genreSearchCmd)
94 | }
95 |
--------------------------------------------------------------------------------
/cmd/profile.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "github.com/spf13/cobra"
5 | "github.com/willfantom/overclirr/ui"
6 | "github.com/willfantom/overclirr/utility"
7 | )
8 |
9 | var addProfileCmd = &cobra.Command{
10 | Use: "add-profile",
11 | Aliases: []string{"add"},
12 | Short: "Add a new Overseerr login profile",
13 | Long: "Create a new Overseerr login profile and write it to the configuration",
14 | Run: func(cmd *cobra.Command, args []string) {
15 | ui.ColorPrintBold("Create New Profile\n", ui.Blue)
16 | ui.ColorPrint(" | profile: "+overseerrProfileName+"\n", ui.White)
17 | var profile utility.OverseerrProfile
18 | profile.URL = ui.GetInput("URL of the Overseerr instance:", utility.URLValidator)
19 | profile.Locale = ui.GetInput("Local of the Overseerr instance (e.g. en):", utility.LocaleValidator)
20 | profile.Auth.Type = utility.SelectProfileAuthType()
21 | switch profile.Auth.Type {
22 | case utility.OverseerrAuthTypeKey:
23 | profile.Auth.Key = ui.GetMaskedInput("API key for the Overseerr instance:", utility.NonEmptyValidator)
24 | case utility.OverseerrAuthTypeLocal:
25 | profile.Auth.Email = ui.GetInput("Email address for the user account:", utility.EmailValidator)
26 | profile.Auth.Password = ui.GetMaskedInput("Password for the user account:", nil)
27 | case utility.OverseerrAuthTypePlex:
28 | profile.Auth.PlexToken = ui.GetMaskedInput("Plex Token for the user account:", utility.NonEmptyValidator)
29 | }
30 | if _, err := profile.Connect(); err != nil {
31 | ui.Fatal("Could not connect to Overseer with given profile information", err)
32 | }
33 | if err := utility.WriteOverseerrProfile(overseerrProfileName, profile, true); err != nil {
34 | ui.Fatal("Valid profile, but can not be written to config", err)
35 | }
36 | ui.Success("Profile Added")
37 | },
38 | }
39 |
40 | var delProfileCmd = &cobra.Command{
41 | Use: "delete-profile",
42 | Aliases: []string{"del-profile", "del", "delete", "remove"},
43 | Short: "Remove an Overseerr login profile",
44 | Long: "Remove an Overseerr login profile from OverCLIrr's configuration",
45 | Run: func(cmd *cobra.Command, args []string) {
46 | ui.ColorPrintBold("Attempting to remove profile...\n", ui.Blue)
47 | ui.ColorPrint(" | profile: "+overseerrProfileName+"\n", ui.White)
48 | ui.DestructiveConfirmation()
49 | if err := utility.DeleteOverseerrProfile(overseerrProfileName); err != nil {
50 | ui.Fatal("Failed to remove profile", err)
51 | }
52 | ui.Success("Profile Added")
53 | },
54 | }
55 |
56 | var profilesCmd = &cobra.Command{
57 | Use: "profiles",
58 | Short: "View and test installed login profiles",
59 | Run: func(cmd *cobra.Command, args []string) {
60 | allProfiles := utility.GetAllOverseerrProfiles()
61 | for name, profile := range allProfiles {
62 | if _, err := profile.Connect(); err != nil {
63 | ui.Error("Could not connect using profile: " + name)
64 | } else {
65 | ui.Success("Connection made using profile: " + name)
66 | }
67 | }
68 | },
69 | }
70 |
71 | func init() {
72 | RootCmd.AddCommand(addProfileCmd)
73 | RootCmd.AddCommand(delProfileCmd)
74 | RootCmd.AddCommand(profilesCmd)
75 | }
76 |
--------------------------------------------------------------------------------
/cmd/requests.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "errors"
5 | "fmt"
6 | "sync"
7 |
8 | "github.com/manifoldco/promptui"
9 | "github.com/sirupsen/logrus"
10 | "github.com/spf13/cobra"
11 | "github.com/willfantom/goverseerr"
12 | "github.com/willfantom/overclirr/ui"
13 | )
14 |
15 | // Flags
16 |
17 | var (
18 | reqPage int
19 | reqPageSize int
20 | allRequests bool
21 | )
22 |
23 | // Commands
24 |
25 | var requestsCmd = &cobra.Command{
26 | Use: "requests",
27 | Aliases: []string{"my-requests"},
28 | Short: "View the requests made by the current profile user",
29 | PreRun: func(cmd *cobra.Command, args []string) {
30 | setOverseer(overseerrProfileName)
31 | },
32 | Run: func(cmd *cobra.Command, args []string) {
33 | ui.ColorPrintBold("Overseerr Requests\n", ui.White)
34 | ui.StartSpinner()
35 | me, err := overseerr.GetLoggedInUser()
36 | if err != nil {
37 | ui.Fatal("Could not get the deatails for the current profile user", err)
38 | }
39 | var requests []*goverseerr.MediaRequest
40 | var pageInfo *goverseerr.Page
41 | if !allRequests {
42 | r, p, err := overseerr.GetUserRequests(me.ID, reqPage-1, reqPageSize)
43 | if err != nil {
44 | ui.Fatal("Could not get the request list for the current user", err)
45 | }
46 | requests = r
47 | pageInfo = p
48 | } else {
49 | r, p, err := overseerr.GetRequests(reqPage-1, reqPageSize, goverseerr.RequestFileterAll, goverseerr.RequestSortAdded)
50 | if err != nil {
51 | ui.Fatal("Could not get the full request list", err)
52 | }
53 | requests = r
54 | pageInfo = p
55 | }
56 | ui.StopSpinner()
57 | ui.ColorPrint(fmt.Sprintf("Found %d results on page %d of %d\n", len(requests), pageInfo.Page, pageInfo.Pages), ui.White)
58 | request := selectRequest(requests)
59 | actIdx, _ := ui.SelectorTemplated("Select an Action", RequestActions, requestActionsPromptTemplate)
60 | if !RequestActions[actIdx].Validator(request) {
61 | ui.Fatal("Action not compatible with this request!", errors.New("action not compatible with request"))
62 | }
63 | RequestActions[actIdx].Handler(request)
64 | },
65 | }
66 |
67 | func init() {
68 | requestsCmd.Flags().IntVarP(&reqPage, "page", "p", 1, "Which page of requests to view")
69 | requestsCmd.Flags().IntVar(&reqPageSize, "page-size", 20, "How many requests to show per page")
70 | requestsCmd.Flags().BoolVarP(&allRequests, "all", "a", false, "Attempt to get all requests, not just cirrent user's")
71 | RootCmd.AddCommand(requestsCmd)
72 | }
73 |
74 | // Request Selection
75 |
76 | var requestSelectionTemplate = &promptui.SelectTemplates{
77 | Label: "{{ . }}:",
78 | Active: "🍿 {{ .ContentTitle | magenta }} ({{ .ContentDate | white }}) {{ .MediaTypeEmoji }}",
79 | Inactive: " {{ .ContentTitle | cyan }} ({{ .ContentDate | red }}) {{ .MediaTypeEmoji }}",
80 | Selected: "🍿 {{ .ContentTitle | magenta | cyan }} {{ .MediaTypeEmoji }}",
81 | Details: `
82 | |- Media Request Details -|
83 | {{ "Title:" | faint }} {{ .ContentTitle }}
84 | {{ "Request ID:" | faint }} {{ .ID }}
85 | {{ "Media Type:" | faint }} {{ .MediaType }}
86 | {{ "Request Status:" | faint }} {{ .StatusEmoji }} {{ .Status }}
87 | {{ "Media Status:" | faint }} {{ .MediaStatusEmoji }} {{ .MediaStatus }}
88 | {{ "Creator:" | faint }} {{ .CreatorEmail }} [{{ .CreatedDate }}]`,
89 | }
90 |
91 | func selectRequest(requests []*goverseerr.MediaRequest) *goverseerr.MediaRequest {
92 | ui.StartSpinner()
93 | friendly := make([]*goverseerr.FriendlyMediaRequest, len(requests))
94 | var wg sync.WaitGroup
95 | for idx, req := range requests {
96 | wg.Add(1)
97 | go func(i int, r *goverseerr.MediaRequest) {
98 | defer wg.Done()
99 | f, err := r.ToFriendly(overseerr)
100 | if err != nil {
101 | if i == 0 {
102 | fmt.Printf("%+v\n", f)
103 | }
104 | logrus.New().WithFields(logrus.Fields{
105 | "requestId": r.ID,
106 | "extended": err.Error(),
107 | }).Errorln("failed to convert request to friendly request")
108 | }
109 | friendly[i] = f
110 | }(idx, req)
111 | }
112 | wg.Wait()
113 | ui.StopSpinner()
114 | idx, _ := ui.SelectorTemplated("Select a request:", friendly, requestSelectionTemplate)
115 | return requests[idx]
116 | }
117 |
118 | // Request Actions
119 |
120 | var requestActionsPromptTemplate = &promptui.SelectTemplates{
121 | Label: "{{ . }}:",
122 | Active: "➡️ {{ .Name | magenta }}",
123 | Inactive: " {{ .Name | cyan }}",
124 | Selected: "➡️ {{ .Name | magenta }}",
125 | Details: `
126 | |- Action Details
127 | {{ "Name:" | faint }} {{ .Name }}
128 | {{ "Description:" | faint }} {{ .Description }}`,
129 | }
130 |
131 | type RequestAction struct {
132 | Name string
133 | Description string
134 | Handler func(r *goverseerr.MediaRequest)
135 | Validator func(r *goverseerr.MediaRequest) bool
136 | }
137 |
138 | var RequestActions = []RequestAction{
139 | {
140 | Name: "Delete Request",
141 | Description: "Remove a request from the Overseerr server",
142 | Validator: func(r *goverseerr.MediaRequest) bool {
143 | return true
144 | },
145 | Handler: func(r *goverseerr.MediaRequest) {
146 | ui.DestructiveConfirmation()
147 | if err := overseerr.DeleteRequest(r.ID); err != nil {
148 | ui.Error("Failed to delete that request")
149 | ui.ColorPrint("You can only remove pending requests if you are not an admin user\n", ui.White)
150 | ui.FatalQuiet("Failed to delete request from server", err)
151 | } else {
152 | ui.Success("Request Deleted")
153 | }
154 | },
155 | },
156 | {
157 | Name: "Retry Request",
158 | Description: "Resend a request to the relevant management service",
159 | Validator: func(r *goverseerr.MediaRequest) bool {
160 | return r.Status != goverseerr.RequestStatusAvailable
161 | },
162 | Handler: func(r *goverseerr.MediaRequest) {
163 | if _, err := overseerr.RetryRequest(r.ID); err != nil {
164 | ui.Error("Failed to retry that request")
165 | ui.ColorPrint("You can only retry requests if you can manage requests (admin)\n", ui.White)
166 | ui.ColorPrint("Availabe requests can not be retried\n", ui.White)
167 | ui.FatalQuiet("Failed to retry request", err)
168 | } else {
169 | ui.Success("Request Resent")
170 | }
171 | },
172 | },
173 | {
174 | Name: "Approve Request",
175 | Description: "Set a request's status to Approved",
176 | Validator: func(r *goverseerr.MediaRequest) bool {
177 | return (r.Status != goverseerr.RequestStatusApproved && r.Status != goverseerr.RequestStatusAvailable)
178 | },
179 | Handler: func(r *goverseerr.MediaRequest) {
180 | ui.DestructiveConfirmation()
181 | if _, err := overseerr.ApproveRequest(r.ID); err != nil {
182 | ui.Error("Failed to approve that request")
183 | ui.FatalQuiet("Failed to approve request", err)
184 | } else {
185 | ui.Success("Request Approved")
186 | }
187 | },
188 | },
189 | {
190 | Name: "Decline Request",
191 | Description: "Set a request's status to Declined",
192 | Validator: func(r *goverseerr.MediaRequest) bool {
193 | return (r.Status != goverseerr.RequestStatusDeclined && r.Status != goverseerr.RequestStatusAvailable)
194 | },
195 | Handler: func(r *goverseerr.MediaRequest) {
196 | ui.DestructiveConfirmation()
197 | if _, err := overseerr.DeclineRequest(r.ID); err != nil {
198 | ui.Error("Failed to decline that request")
199 | ui.FatalQuiet("Failed to decline request", err)
200 | } else {
201 | ui.Success("Request Declined")
202 | }
203 | },
204 | },
205 | {
206 | Name: "Details",
207 | Description: "Print more details about this request",
208 | Validator: func(r *goverseerr.MediaRequest) bool {
209 | return true
210 | },
211 | Handler: func(r *goverseerr.MediaRequest) {
212 | if friendly, err := r.ToFriendly(overseerr); err != nil {
213 | ui.Error("Failed to get more info about this request")
214 | ui.FatalQuiet("Failed to get request details", err)
215 | } else {
216 | fmt.Printf("%+v\n", friendly)
217 | }
218 | },
219 | },
220 | }
221 |
--------------------------------------------------------------------------------
/cmd/retry-all.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "fmt"
5 | "sync"
6 |
7 | "github.com/spf13/cobra"
8 | "github.com/willfantom/goverseerr"
9 | "github.com/willfantom/overclirr/ui"
10 | )
11 |
12 | var retryAllCmd = &cobra.Command{
13 | Use: "retry-requests",
14 | Short: "Retry all the non-available requests",
15 | Long: "Resend all media requests to the manager service provided the content is not already available",
16 | PreRun: func(cmd *cobra.Command, args []string) {
17 | setOverseer(overseerrProfileName)
18 | },
19 | Run: func(cmd *cobra.Command, args []string) {
20 | ui.ColorPrintBold("Fetching Requests...\n", ui.White)
21 | ui.StartSpinner()
22 | pgNumber := 0
23 | anyErrors := false
24 | var allRequests []*goverseerr.MediaRequest
25 | for {
26 | r, p, err := overseerr.GetRequests(pgNumber, 50, goverseerr.RequestFileterUnavailable, goverseerr.RequestSortAdded)
27 | if err != nil {
28 | ui.Fatal("Could not get the unavailable request list", err)
29 | }
30 | allRequests = append(allRequests, r...)
31 | pgNumber++
32 | if pgNumber >= p.Pages {
33 | break
34 | }
35 | }
36 | ui.StopSpinner()
37 | ui.ColorPrint("Retrying Requests...\n", ui.White)
38 | ui.StartSpinner()
39 | var wg sync.WaitGroup
40 | for _, req := range allRequests {
41 | wg.Add(1)
42 | go func(r *goverseerr.MediaRequest) {
43 | defer wg.Done()
44 | if _, err := overseerr.RetryRequest(r.ID); err != nil {
45 | ui.Error("Failed to retry request: " + fmt.Sprintf("%d", r.ID))
46 | anyErrors = true
47 | }
48 | }(req)
49 | }
50 | wg.Wait()
51 | ui.StopSpinner()
52 | if anyErrors {
53 | ui.ColorPrintBold("Completed with errors\n", ui.Red)
54 | } else {
55 | ui.Success("Retried all requests")
56 | }
57 | },
58 | }
59 |
60 | func init() {
61 | RootCmd.AddCommand(retryAllCmd)
62 | }
63 |
--------------------------------------------------------------------------------
/cmd/root.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/sirupsen/logrus"
7 | "github.com/spf13/cobra"
8 | "github.com/spf13/viper"
9 | "github.com/willfantom/goverseerr"
10 | "github.com/willfantom/overclirr/ui"
11 | "github.com/willfantom/overclirr/utility"
12 | )
13 |
14 | const (
15 | defaultProfile string = "default"
16 | )
17 |
18 | // persistent flags
19 | var (
20 | logLevel string
21 | overseerrProfileName string
22 | noTitle bool
23 | )
24 |
25 | // instance to use
26 | var overseerr *goverseerr.Overseerr
27 |
28 | func setOverseer(profileName string) {
29 | ui.StartSpinner()
30 | profile, err := utility.GetOverseerrProfile(profileName)
31 | if err != nil {
32 | ui.Fatal("Overseerr profile does not exist", err)
33 | }
34 | instance, err := profile.Connect()
35 | if err != nil {
36 | ui.Fatal("Could not connect using overseerr profile: "+profileName, err)
37 | }
38 | overseerr = instance
39 | ui.StopSpinner()
40 | }
41 |
42 | var RootCmd = &cobra.Command{
43 | Use: "overclirr",
44 | Aliases: []string{"ocrr", "overseerr", "overseerr-cli"},
45 | Short: "Manage media servers from the command line",
46 | Long: `A simple command line tool for managing media server(s) with Overseerr!`,
47 | PersistentPreRun: func(cmd *cobra.Command, args []string) {
48 | setupLogger()
49 | if !noTitle {
50 | ui.PrintTitleBox("OverCLIrr", "An Overseerr Management Tool")
51 | }
52 | logrus.WithFields(logrus.Fields{
53 | "command": cmd.Name(),
54 | "args": args,
55 | }).Debugln("running command")
56 | },
57 | Run: func(cmd *cobra.Command, args []string) {
58 | allProfiles := utility.GetAllOverseerrProfiles()
59 | ui.ColorPrintBold("Profiles Found in Configuration: ", ui.Blue)
60 | ui.ColorPrint(fmt.Sprintf("%d\n\n", len(allProfiles)), ui.White)
61 | cmd.Help()
62 | },
63 | }
64 |
65 | func setupLogger() {
66 | if level, err := logrus.ParseLevel(logLevel); err != nil {
67 | ui.Error("Invalid log level given: " + logLevel)
68 | logrus.SetLevel(logrus.PanicLevel)
69 | } else {
70 | logrus.SetLevel(level)
71 | }
72 | }
73 |
74 | func init() {
75 | RootCmd.PersistentFlags().BoolVar(&noTitle, "no-title", false, "stop printing the big fu*king title")
76 | RootCmd.PersistentFlags().StringVar(&logLevel, "log", "panic", "set the log level (fatal, error, info, debug, trace)")
77 | RootCmd.PersistentFlags().StringVar(&overseerrProfileName, "profile", defaultProfile, "use a specific overseerr login profile name")
78 | viper.BindPFlag("log", RootCmd.PersistentFlags().Lookup("log"))
79 | }
80 |
--------------------------------------------------------------------------------
/cmd/search.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "fmt"
5 |
6 | "github.com/manifoldco/promptui"
7 | "github.com/spf13/cobra"
8 | "github.com/willfantom/goverseerr"
9 | "github.com/willfantom/overclirr/ui"
10 | "github.com/willfantom/overclirr/utility"
11 | )
12 |
13 | // Flags
14 |
15 | var (
16 | searchPage int
17 | )
18 |
19 | // Commands
20 |
21 | var searchCmd = &cobra.Command{
22 | Use: "search",
23 | Short: "Search for and request new media",
24 | PreRun: func(cmd *cobra.Command, args []string) {
25 | setOverseer(overseerrProfileName)
26 | },
27 | Run: func(cmd *cobra.Command, args []string) {
28 | ui.ColorPrintBold("Search Media\n", ui.White)
29 | searchTerm := ui.GetInput("Enter the search term", utility.NonEmptyValidator)
30 | ui.StartSpinner()
31 | results, err := overseerr.Search(searchTerm, searchPage)
32 | if err != nil {
33 | ui.Fatal("Could not fetch search results", err)
34 | }
35 | ui.StopSpinner()
36 | ui.ColorPrint(fmt.Sprintf("Found %d results on page %d of %d\n", len(results.Results), results.Page, results.TotalPages), ui.White)
37 | ui.SelectorTemplated("Select a request:", results, resultSelectionTemplate)
38 | },
39 | }
40 |
41 | func init() {
42 | searchCmd.Flags().IntVarP(&searchPage, "page", "p", 1, "Which page of results to view")
43 | RootCmd.AddCommand(searchCmd)
44 | }
45 |
46 | // Result Selection
47 |
48 | var resultSelectionTemplate = &promptui.SelectTemplates{
49 | Label: "{{ . }}:",
50 | Active: "🍿 {{ if .Title }} {{ .Title | magenta }} {{else}} {{ .Name | magenta }} {{end}} {{if .ReleaseDate }}{{ (.ReleaseDate) | white }}{{end}}{{if .FirstAiredDate }}{{ (.FirstAiredDate) | white }}{{end}} {{ .MediaType.ToEmoji }}",
51 | Inactive: " {{ if .Title }} {{ .Title | cyan }} {{else}} {{ .Name | magenta }} {{end}} {{if .ReleaseDate }}{{ (.ReleaseDate) | red }}{{end}}{{if .FirstAiredDate }}{{ (.FirstAiredDate) | red }}{{end}} {{ .MediaType.ToEmoji }}",
52 | Selected: "🍿 {{ if .Title }} {{ .Title | cyan }} {{else}} {{ .Name | magenta }} {{end}} {{ .MediaTypeEmoji }}",
53 | Details: `
54 | |- Search Result Details -|
55 | {{ "Title:" | faint }} {{ if .Title }} {{ .Title }} {{else}} {{ .Name }} {{end}}
56 | {{ "Media Type:" | faint }} {{ .MediaType.ToEmoji }} {{ .MediaType }}
57 | {{ "Media Status:" | faint }} {{ .MediaInfo.Status.ToEmoji }} {{ .MediaInfo.Status.ToString }}
58 | {{ if .ReleaseDate }}{{"Release Date:" | faint }} {{ .ReleaseDate }}{{end}}{{ if .FirstAiredDate }}{{ "Release Date:" | faint }} {{ .FirstAiredDate }}{{end}}`,
59 | }
60 |
61 | // Result Actions
62 |
63 | var resultActionsPromptTemplate = &promptui.SelectTemplates{
64 | Label: "{{ . }}:",
65 | Active: "➡️ {{ .Name | magenta }}",
66 | Inactive: " {{ .Name | cyan }}",
67 | Selected: "➡️ {{ .Name | magenta }}",
68 | Details: `
69 | |- Action Details
70 | {{ "Name:" | faint }} {{ .Name }}
71 | {{ "Description:" | faint }} {{ .Description }}`,
72 | }
73 |
74 | type ResultAction struct {
75 | Name string
76 | Description string
77 | Handler func(r *goverseerr.GenericSearchResult)
78 | Validator func(r *goverseerr.GenericSearchResult) bool
79 | }
80 |
81 | var ResultActions = []ResultAction{
82 | {
83 | Name: "Request",
84 | Description: "Request this media!",
85 | Validator: func(r *goverseerr.GenericSearchResult) bool {
86 | if r.MediaType == goverseerr.MediaTypePerson {
87 | ui.Error("Can not request a person!")
88 | return false
89 | }
90 | if r.MediaInfo.Status != goverseerr.MediaStatusUnknown {
91 | ui.Error("Media is already requested or available!")
92 | return false
93 | }
94 | return true
95 | },
96 | Handler: func(r *goverseerr.GenericSearchResult) {
97 |
98 | },
99 | },
100 | {
101 | Name: "Details",
102 | Description: "See more details about this item",
103 | Validator: func(r *goverseerr.GenericSearchResult) bool {
104 | return true
105 | },
106 | Handler: func(r *goverseerr.GenericSearchResult) {
107 | },
108 | },
109 | }
110 |
--------------------------------------------------------------------------------
/cmd/version.go:
--------------------------------------------------------------------------------
1 | package cmd
2 |
3 | import (
4 | "context"
5 |
6 | "github.com/google/go-github/v35/github"
7 | semver "github.com/hashicorp/go-version"
8 | "github.com/sirupsen/logrus"
9 | "github.com/spf13/cobra"
10 | "github.com/willfantom/overclirr/ui"
11 | )
12 |
13 | const (
14 | defaultVersion string = "no-version"
15 | ghUser string = "willfantom"
16 | ghRepo string = "goverseerr"
17 | )
18 |
19 | var version string = defaultVersion
20 |
21 | var versionCmd = &cobra.Command{
22 | Use: "version",
23 | Short: "Print the version of OverCLIrr",
24 | Run: func(cmd *cobra.Command, args []string) {
25 | ui.ColorPrint("OverCLIrr Version: ", ui.White)
26 | ui.ColorPrintBold(version+"\n", ui.Magenta)
27 | },
28 | }
29 |
30 | var overseerrVersion = &cobra.Command{
31 | Use: "overseerr-version",
32 | Short: "Print the version of the connected Overseerr instance",
33 | PreRun: func(cmd *cobra.Command, args []string) {
34 | setOverseer(overseerrProfileName)
35 | },
36 | Run: func(cmd *cobra.Command, args []string) {
37 | status, err := overseerr.Status()
38 | if err != nil {
39 | ui.Fatal("Could not determine Overseerr version", err)
40 | }
41 | ui.ColorPrint("Overseerr Version: ", ui.White)
42 | ui.ColorPrintBold(status.Version+"\n", ui.Magenta)
43 | },
44 | }
45 |
46 | var updateCmd = &cobra.Command{
47 | Use: "update",
48 | Short: "Check if OverCLIrr is up to date",
49 | Run: func(cmd *cobra.Command, args []string) {
50 | available, err := checkForUpdate()
51 | if available {
52 | ui.ColorPrint("An update is available\nCheck the releases on GitHub\n", ui.Blue)
53 | } else if !available && err == nil {
54 | ui.ColorPrint("You are running the latest version according to GitHub\n", ui.Blue)
55 | } else {
56 | ui.Error("Could not perform version check")
57 | ui.Fatal("Perhaps this is unversioned? Or you can't connect to GitHub?", err)
58 | }
59 | },
60 | }
61 |
62 | func checkForUpdate() (bool, error) {
63 | //semver local version
64 | semverVersion, err := semver.NewSemver(version)
65 | if err != nil {
66 | logrus.WithField("extended", err.Error()).
67 | Errorln("could not determine the version of overclirr")
68 | return false, err
69 | }
70 |
71 | //get latest github release tag
72 | client := github.NewClient(nil)
73 | release, _, err := client.Repositories.GetLatestRelease(context.Background(), ghUser, ghRepo)
74 | if err != nil {
75 | logrus.WithField("extended", err.Error()).
76 | Errorln("could get repository release info from github")
77 | return false, err
78 | }
79 | ghVer, err := semver.NewSemver(*release.TagName)
80 | if err != nil {
81 | logrus.WithField("extended", err.Error()).
82 | Errorln("latest github release tag not semver compliant")
83 | return false, err
84 | }
85 |
86 | //compare
87 | if ghVer.GreaterThan(semverVersion) {
88 | logrus.Infoln("found a more recent release on github")
89 | return true, nil
90 | }
91 | logrus.Infoln("overclirr found to be latest version")
92 | return false, nil
93 | }
94 |
95 | func init() {
96 | RootCmd.AddCommand(versionCmd)
97 | RootCmd.AddCommand(updateCmd)
98 | RootCmd.AddCommand(overseerrVersion)
99 | }
100 |
--------------------------------------------------------------------------------
/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillFantom/OverCLIrr/9fdfd3a956e57a7272956218eabc57be27f3a75d/example.gif
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/willfantom/overclirr
2 |
3 | go 1.16
4 |
5 | require (
6 | github.com/Delta456/box-cli-maker/v2 v2.2.1
7 | github.com/briandowns/spinner v1.12.0
8 | github.com/eliukblau/pixterm v1.3.1
9 | github.com/fatih/color v1.10.0
10 | github.com/go-resty/resty/v2 v2.6.0
11 | github.com/google/go-github/v35 v35.2.0
12 | github.com/hashicorp/go-version v1.3.0
13 | github.com/lithammer/fuzzysearch v1.1.2
14 | github.com/lucasb-eyer/go-colorful v1.2.0
15 | github.com/manifoldco/promptui v0.8.0
16 | github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4
17 | github.com/pterm/pterm v0.12.13
18 | github.com/sirupsen/logrus v1.8.1
19 | github.com/spf13/cobra v1.1.3
20 | github.com/spf13/viper v1.7.1
21 | github.com/willfantom/goverseerr v0.1.1
22 | github.com/willfantom/reticulating-go v1.0.1
23 | golang.org/x/term v0.0.0-20210503060354-a79de5458b56
24 | golang.org/x/text v0.3.6
25 | )
26 |
--------------------------------------------------------------------------------
/go.sum:
--------------------------------------------------------------------------------
1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU=
4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU=
5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY=
6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc=
7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0=
8 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o=
9 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE=
10 | cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk=
11 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I=
12 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw=
13 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
14 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
15 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
16 | github.com/Delta456/box-cli-maker/v2 v2.2.1 h1:uTcuvT6Ty+LBHuRUdFrJBpqP9RhtLxI5+5ZpKYAUuVw=
17 | github.com/Delta456/box-cli-maker/v2 v2.2.1/go.mod h1:R7jxZHK2wGBR2Luz/Vgi8jP5fz1ljUXgu2o2JQNmvFU=
18 | github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
19 | github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
20 | github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
21 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o=
22 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY=
23 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8=
24 | github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
25 | github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
26 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
27 | github.com/bketelsen/crypt v0.0.3-0.20200106085610-5cbc8cc4026c/go.mod h1:MKsuJmJgSg28kpZDP6UIiPt0e0Oz0kqKNGyRaWEPv84=
28 | github.com/briandowns/spinner v1.12.0 h1:72O0PzqGJb6G3KgrcIOtL/JAGGZ5ptOMCn9cUHmqsmw=
29 | github.com/briandowns/spinner v1.12.0/go.mod h1:QOuQk7x+EaDASo80FEXwlwiA+j/PPIcX3FScO+3/ZPQ=
30 | github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
31 | github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=
32 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
33 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
34 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
35 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1 h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=
36 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
37 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
38 | github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
39 | github.com/coreos/etcd v3.3.13+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
40 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
41 | github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
42 | github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
43 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
44 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
45 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
46 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
47 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
48 | github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
49 | github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
50 | github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
51 | github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
52 | github.com/eliukblau/pixterm v1.3.1 h1:XeouQViH+lmzCa7sMUoK2cd7qlgHYGLIjwRKaOdJbKA=
53 | github.com/eliukblau/pixterm v1.3.1/go.mod h1:on5ueknFt+ZFVvIVVzQ7/JXwPjv5fJd8Q1Ybh7XixfU=
54 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
55 | github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg=
56 | github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM=
57 | github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
58 | github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
59 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
60 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
61 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=
62 | github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
63 | github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
64 | github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
65 | github.com/go-resty/resty/v2 v2.6.0 h1:joIR5PNLM2EFqqESUjCMGXrWmXNHEU9CEiK813oKYS4=
66 | github.com/go-resty/resty/v2 v2.6.0/go.mod h1:PwvJS6hvaPkjtjNg9ph+VrSD92bi5Zq73w/BIH7cC3Q=
67 | github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
68 | github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
69 | github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
70 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
71 | github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
72 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
73 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
74 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y=
75 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
76 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
77 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
78 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
79 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
80 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
81 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
82 | github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
83 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
84 | github.com/google/go-github/v35 v35.1.0/go.mod h1:s0515YVTI+IMrDoy9Y4pHt9ShGpzHvHO8rZ7L7acgvs=
85 | github.com/google/go-github/v35 v35.2.0 h1:s/soW8jauhjUC3rh8JI0FePuocj0DEI9DNBg/bVplE8=
86 | github.com/google/go-github/v35 v35.2.0/go.mod h1:s0515YVTI+IMrDoy9Y4pHt9ShGpzHvHO8rZ7L7acgvs=
87 | github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
88 | github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
89 | github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
90 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs=
91 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
92 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
93 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
94 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
95 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
96 | github.com/gookit/color v1.3.6/go.mod h1:R3ogXq2B9rTbXoSHJ1HyUVAZ3poOJHpd9nQmyGZsfvQ=
97 | github.com/gookit/color v1.4.1/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
98 | github.com/gookit/color v1.4.2 h1:tXy44JFSFkKnELV6WaMo/lLfu/meqITX3iAV52do7lk=
99 | github.com/gookit/color v1.4.2/go.mod h1:fqRyamkC1W8uxl+lxCQxOT09l/vYfZ+QeiX3rKQHCoQ=
100 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8=
101 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
102 | github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So=
103 | github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
104 | github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
105 | github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
106 | github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
107 | github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q=
108 | github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8=
109 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
110 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
111 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
112 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
113 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
114 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU=
115 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU=
116 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4=
117 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
118 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro=
119 | github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw=
120 | github.com/hashicorp/go-version v1.3.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA=
121 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90=
122 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
123 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
124 | github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
125 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
126 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64=
127 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ=
128 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I=
129 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc=
130 | github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
131 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
132 | github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
133 | github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
134 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU=
135 | github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7C0MuV77Wo=
136 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU=
137 | github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a h1:FaWFmfWdAUKbSCtOU2QjDaorUexogfaMgbipgYATUMU=
138 | github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a/go.mod h1:UJSiEoRfvx3hP73CvoARgeLjaIOjybY9vj8PUPPFGeU=
139 | github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
140 | github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
141 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
142 | github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
143 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg=
144 | github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
145 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
146 | github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
147 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
148 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
149 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
150 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
151 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
152 | github.com/lithammer/fuzzysearch v1.1.1/go.mod h1:H2bng+w5gsR7NlfIJM8ElGZI0sX6C/9uzGqicVXGU6c=
153 | github.com/lithammer/fuzzysearch v1.1.2 h1:ePUtm14xKxbpCxozcFbIDRtvANxnVnE+RKpJUqkr2gA=
154 | github.com/lithammer/fuzzysearch v1.1.2/go.mod h1:v6tYW/9kpfV6LNcweXdSjQsfCku/1M/oObmSox1fzP8=
155 | github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
156 | github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
157 | github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
158 | github.com/lunixbochs/vtclean v0.0.0-20180621232353-2d01aacdc34a/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI=
159 | github.com/lunixbochs/vtclean v1.0.0 h1:xu2sLAri4lGiovBDQKxl5mrXyESr3gUr5m5SM5+LVb8=
160 | github.com/lunixbochs/vtclean v1.0.0/go.mod h1:pHhQNgMf3btfWnGBVipUOjRYhoOsdGqdm/+2c2E2WMI=
161 | github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
162 | github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls=
163 | github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60=
164 | github.com/manifoldco/promptui v0.8.0 h1:R95mMF+McvXZQ7j1g8ucVZE1gLP3Sv6j9vlF9kyRqQo=
165 | github.com/manifoldco/promptui v0.8.0/go.mod h1:n4zTdgP0vr0S3w7/O/g98U+e0gwLScEXGwov2nIKuGQ=
166 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
167 | github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
168 | github.com/mattn/go-colorable v0.1.8 h1:c1ghPdyEDarC70ftn0y+A/Ee++9zz8ljHG1b13eJ0s8=
169 | github.com/mattn/go-colorable v0.1.8/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
170 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
171 | github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
172 | github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
173 | github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
174 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
175 | github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
176 | github.com/mattn/go-runewidth v0.0.12 h1:Y41i/hVW3Pgwr8gV+J23B9YEY0zxjptBuCWEaxmAOow=
177 | github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
178 | github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
179 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
180 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
181 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
182 | github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
183 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI=
184 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg=
185 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
186 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
187 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
188 | github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag=
189 | github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
190 | github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
191 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
192 | github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
193 | github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
194 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc=
195 | github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
196 | github.com/pelletier/go-toml v1.9.0 h1:NOd0BRdOKpPf0SxkL3HxSQOG7rNh+4kl6PHcBPFs7Q0=
197 | github.com/pelletier/go-toml v1.9.0/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=
198 | github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI=
199 | github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ=
200 | github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
201 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
202 | github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
203 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
204 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
205 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=
206 | github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
207 | github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
208 | github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
209 | github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
210 | github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
211 | github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
212 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
213 | github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
214 | github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
215 | github.com/pterm/pterm v0.12.13 h1:BoEwjE7L6ft8exofmyrZefCvrNXllnfbWUiiTS/sOA8=
216 | github.com/pterm/pterm v0.12.13/go.mod h1:kJLnbnOAnwSaee/6kMVtoLr4avzShsFJUAHedynGJ4g=
217 | github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
218 | github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
219 | github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
220 | github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
221 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
222 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
223 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts=
224 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc=
225 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
226 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
227 | github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
228 | github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
229 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d h1:zE9ykElWQ6/NYmHa3jpm/yHnI4xSofP+UP6SpjHcSeM=
230 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc=
231 | github.com/smartystreets/goconvey v1.6.4 h1:fv0U8FUIMPNf1L9lnHLvLhgicrIVChEkdzIKYqbNC9s=
232 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA=
233 | github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
234 | github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
235 | github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
236 | github.com/spf13/afero v1.6.0 h1:xoax2sJ2DT8S8xA2paPFjDCScCNeWsg75VG0DLRreiY=
237 | github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I=
238 | github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
239 | github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
240 | github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
241 | github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M=
242 | github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo=
243 | github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
244 | github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
245 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo=
246 | github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
247 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
248 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
249 | github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
250 | github.com/spf13/viper v1.7.1 h1:pM5oEahlgWv/WnHXpgbKz7iLIxRf65tye2Ci+XFK5sk=
251 | github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
252 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
253 | github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
254 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
255 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
256 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
257 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
258 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
259 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
260 | github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s=
261 | github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
262 | github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
263 | github.com/willfantom/goverseerr v0.1.1 h1:Psv8VoebEecXcorhQGaSZM75TAop1xu5W1HFEXNl7a0=
264 | github.com/willfantom/goverseerr v0.1.1/go.mod h1:Yy+6N7z7t/dnkmVbFuzPJKymX8yzccTnis/9UyGcPwY=
265 | github.com/willfantom/reticulating-go v1.0.1 h1:mEcPKoBJnmWFRmPNOoo/Gd8GYmPTxkBvSsVwYeU73wY=
266 | github.com/willfantom/reticulating-go v1.0.1/go.mod h1:8sFPhmxvD+whw/FMw/kq8/ZE7QGFyubDn9XW92AmA0I=
267 | github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
268 | github.com/xo/terminfo v0.0.0-20200218205459-454e5b68f9e8/go.mod h1:6Yhx5ZJl5942QrNRWLwITArVT9okUXc5c3brgWJMoDc=
269 | github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8=
270 | github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs=
271 | go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
272 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
273 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
274 | go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
275 | go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
276 | go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
277 | golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
278 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
279 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
280 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
281 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
282 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
283 | golang.org/x/crypto v0.0.0-20191206172530-e9b2fee46413/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
284 | golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b h1:7mWr3k41Qtv8XlltBkDkl8LoP3mpSgBW8BUoxtEdbXg=
285 | golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
286 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
287 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
288 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=
289 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek=
290 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY=
291 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
292 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
293 | golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
294 | golang.org/x/image v0.0.0-20191206065243-da761ea9ff43 h1:gQ6GUSD102fPgli+Yb4cR/cGaHF7tNBt+GYoRCpGC7s=
295 | golang.org/x/image v0.0.0-20191206065243-da761ea9ff43/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
296 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
297 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
298 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
299 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
300 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
301 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
302 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
303 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE=
304 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=
305 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc=
306 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY=
307 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
308 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
309 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
310 | golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
311 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
312 | golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
313 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
314 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
315 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
316 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
317 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
318 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
319 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
320 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
321 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
322 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
323 | golang.org/x/net v0.0.0-20210501142056-aec3718b3fa0 h1:6QqBc2UURz4Sbr4IE15uXM8CTQlHnRdtKuogDhwnu2Y=
324 | golang.org/x/net v0.0.0-20210501142056-aec3718b3fa0/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
325 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
326 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
327 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
328 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
329 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
330 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
331 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
332 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
333 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
334 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
335 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
336 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
337 | golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
338 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
339 | golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
340 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
341 | golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
342 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
343 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
344 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
345 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
346 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
347 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
348 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
349 | golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
350 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
351 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
352 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
353 | golang.org/x/sys v0.0.0-20201223074533-0d417f636930/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
354 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
355 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
356 | golang.org/x/sys v0.0.0-20210426230700-d19ff857e887 h1:dXfMednGJh/SUUFjTLsWJz3P+TQt9qnR11GgeI3vWKs=
357 | golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
358 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
359 | golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
360 | golang.org/x/term v0.0.0-20210429154555-c04ba851c2a4/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
361 | golang.org/x/term v0.0.0-20210503060354-a79de5458b56 h1:b8jxX3zqjpqb2LklXPzKSGJhzyxCOZSz8ncv8Nv+y7w=
362 | golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
363 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
364 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
365 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
366 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
367 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
368 | golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
369 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
370 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
371 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
372 | golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
373 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
374 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
375 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
376 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
377 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
378 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
379 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
380 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
381 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
382 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
383 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
384 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
385 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
386 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
387 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
388 | golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
389 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
390 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
391 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE=
392 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M=
393 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
394 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg=
395 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI=
396 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
397 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
398 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
399 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0=
400 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
401 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
402 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
403 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
404 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE=
405 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
406 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
407 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8=
408 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc=
409 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
410 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38=
411 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
412 | gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
413 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
414 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
415 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
416 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
417 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
418 | gopkg.in/ini.v1 v1.51.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
419 | gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU=
420 | gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
421 | gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
422 | gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
423 | gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
424 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
425 | gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
426 | gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
427 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
428 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
429 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
430 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
431 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
432 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
433 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
434 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
435 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
436 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
437 |
--------------------------------------------------------------------------------
/help.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/WillFantom/OverCLIrr/9fdfd3a956e57a7272956218eabc57be27f3a75d/help.png
--------------------------------------------------------------------------------
/overclirr.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "github.com/sirupsen/logrus"
5 | "github.com/spf13/viper"
6 | "github.com/willfantom/overclirr/cmd"
7 | "github.com/willfantom/overclirr/ui"
8 | )
9 |
10 | const (
11 | initialLogLevel string = "panic"
12 | )
13 |
14 | func main() {
15 |
16 | if err := cmd.RootCmd.Execute(); err != nil {
17 | if logrus.GetLevel() < logrus.WarnLevel {
18 | ui.Error("Try setting the log level higher (e.g. info) to see what is going on!")
19 | }
20 | logrus.WithField("extended", err.Error()).
21 | Fatalln("an error occurred executing the command")
22 | }
23 | }
24 |
25 | // init adds the config information to the global viper
26 | func init() {
27 | //set initial log level
28 | lvl, _ := logrus.ParseLevel(initialLogLevel)
29 | logrus.SetLevel(lvl)
30 |
31 | // define configuration file info
32 | viper.SetConfigName("overclirr")
33 | viper.SetConfigType("json")
34 | viper.AddConfigPath("$HOME/.config/")
35 | viper.AddConfigPath(".")
36 |
37 | // set default configuration values
38 | viper.SetDefault("showLoadingSpinner", true)
39 | viper.SetDefault("log", initialLogLevel)
40 | viper.SetDefault("profiles", nil)
41 |
42 | // create config file
43 | if err := viper.SafeWriteConfig(); err != nil {
44 | if _, ok := err.(viper.ConfigFileAlreadyExistsError); !ok {
45 | ui.Fatal("Configuration file could not be created!", err)
46 | }
47 | }
48 |
49 | // read in existing config
50 | if err := viper.ReadInConfig(); err != nil {
51 | if _, ok := err.(viper.ConfigFileNotFoundError); !ok {
52 | ui.ColorPrint("Try removing the file and readding the configuration values\nOr check the wiki on GitHub...", ui.Blue)
53 | ui.Fatal("Existing configuration file could not be read in", err)
54 | } else {
55 | ui.ColorPrint("Config file should have been created automatically...", ui.White)
56 | ui.Fatal("No configuration file could be found", err)
57 | }
58 | }
59 |
60 | // config cascade
61 | if viper.GetString("log") != initialLogLevel {
62 | viper.Set("showLoadingSpinner", false)
63 | }
64 |
65 | logrus.Traceln("configuration init success")
66 | }
67 |
--------------------------------------------------------------------------------
/ui/boxes.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | box "github.com/Delta456/box-cli-maker/v2"
5 | "github.com/pterm/pterm"
6 | )
7 |
8 | var (
9 | titleBox = box.New(box.Config{
10 | Type: "Double",
11 | Color: "HiMagenta",
12 | ContentAlign: "Center",
13 | TitlePos: "Inside",
14 | Px: 3,
15 | Py: 0,
16 | })
17 |
18 | contentsBox = box.New(box.Config{
19 | Type: "Round",
20 | Color: "White",
21 | ContentAlign: "Center",
22 | TitlePos: "Top",
23 | Px: 2,
24 | Py: 1,
25 | })
26 |
27 | compactBox = box.New(box.Config{
28 | Type: "Round",
29 | Color: "White",
30 | ContentAlign: "Center",
31 | TitlePos: "Inside",
32 | Px: 2,
33 | Py: 0,
34 | })
35 | )
36 |
37 | const maxLineLength int = 60
38 |
39 | func stringToParagraph(in string) string {
40 | return pterm.DefaultParagraph.WithMaxWidth(maxLineLength).Sprint(in)
41 | }
42 |
43 | func PrintTitleBox(title, sub string) {
44 | stopUIElements()
45 | titleBox.Println(title, stringToParagraph(sub))
46 | }
47 |
48 | func PrintBox(title, sub string) {
49 | stopUIElements()
50 | contentsBox.Println(title, stringToParagraph(sub))
51 | }
52 |
53 | func PrintCompactBox(title, sub string) {
54 | stopUIElements()
55 | compactBox.Println(title, stringToParagraph(sub))
56 | }
57 |
--------------------------------------------------------------------------------
/ui/common.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "strings"
5 |
6 | "github.com/fatih/color"
7 | "github.com/pterm/pterm"
8 | "github.com/sirupsen/logrus"
9 | )
10 |
11 | func stopUIElements() {
12 | StopSpinner()
13 | }
14 |
15 | const (
16 | Red color.Attribute = color.FgRed
17 | Blue color.Attribute = color.FgBlue
18 | Magenta color.Attribute = color.FgMagenta
19 | White color.Attribute = color.FgWhite
20 | )
21 |
22 | func ColorPrint(message string, fgColor color.Attribute) {
23 | color.New(fgColor).Printf("%s", message)
24 | }
25 |
26 | func ColorPrintBold(message string, fgColor color.Attribute) {
27 | color.New(fgColor, color.Bold).Printf("%s", message)
28 | }
29 |
30 | func Table(values [][]string) {
31 | pterm.DefaultTable.WithHasHeader().WithData(values).Render()
32 | }
33 |
34 | func Success(message string) {
35 | stopUIElements()
36 | color.New(color.FgBlack, color.BgGreen).Printf(" SUCCESS ")
37 | color.New(color.FgGreen).Printf(" %s\n", message)
38 | }
39 |
40 | func Error(message string) {
41 | stopUIElements()
42 | color.New(color.FgBlack, color.BgRed, color.Bold).Printf(" ERROR ")
43 | color.New(color.FgRed).Printf(" %s\n", message)
44 | }
45 |
46 | func ErrorSub(message, sub string) {
47 | stopUIElements()
48 | color.New(color.FgBlack, color.BgRed, color.Bold).Printf(" ERROR ")
49 | color.New(color.FgRed).Printf(" %s\n", message)
50 | color.New(color.FgWhite, color.Bold).Printf(" > %s", sub)
51 | }
52 |
53 | func FatalQuiet(message string, err error) {
54 | stopUIElements()
55 | logrus.WithField("extended", err.Error()).Fatalln(strings.ToLower(message))
56 | }
57 |
58 | func Fatal(message string, err error) {
59 | stopUIElements()
60 | color.New(color.FgBlack, color.BgRed, color.Bold).Printf(" FATAL ")
61 | color.New(color.FgRed).Printf(" %s\n", message)
62 | logrus.WithField("extended", err.Error()).Fatalln(strings.ToLower(message))
63 | }
64 |
--------------------------------------------------------------------------------
/ui/image.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "os"
5 | "runtime"
6 |
7 | "github.com/eliukblau/pixterm/pkg/ansimage"
8 | "github.com/lucasb-eyer/go-colorful"
9 | "github.com/pkg/browser"
10 | "github.com/willfantom/goverseerr"
11 | "golang.org/x/term"
12 | )
13 |
14 | func DisplayMediaPoster(posterPath string) {
15 | //Try in the CLI first
16 | err := openImageInTerminal(goverseerr.PosterPathBase + posterPath)
17 | if err != nil {
18 | Error("Can't open image in the command line, using browser")
19 | if bsrErr := openImageInBrowser(goverseerr.PosterPathBase + posterPath); bsrErr != nil {
20 | Fatal("Could not open image at all", err)
21 | }
22 | }
23 | }
24 |
25 | func openImageInBrowser(url string) error {
26 | return browser.OpenURL(url)
27 | }
28 |
29 | func openImageInTerminal(url string) error {
30 | var image *ansimage.ANSImage
31 | var x, y int
32 | var err error
33 | if term.IsTerminal(int(os.Stdout.Fd())) {
34 | x, y, err = term.GetSize(int(os.Stdout.Fd()))
35 | }
36 | if err != nil {
37 | x = 80
38 | y = 24
39 | }
40 | sm := ansimage.ScaleMode(2)
41 | dm := ansimage.DitheringMode(0)
42 | sfy, sfx := ansimage.BlockSizeY, ansimage.BlockSizeX
43 | if ansimage.DitheringMode(0) == ansimage.NoDithering {
44 | sfy, sfx = 2, 1
45 | }
46 | mc, _ := colorful.Hex("#000000")
47 | image, err = ansimage.NewScaledFromURL(url, sfy*y, sfx*x, mc, sm, dm)
48 | if err != nil {
49 | return err
50 | }
51 | if term.IsTerminal(int(os.Stdout.Fd())) {
52 | ansimage.ClearTerminal()
53 | }
54 | image.SetMaxProcs(runtime.NumCPU())
55 | image.DrawExt(false, false)
56 | return nil
57 | }
58 |
--------------------------------------------------------------------------------
/ui/input.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "strings"
5 |
6 | "github.com/manifoldco/promptui"
7 | )
8 |
9 | func GetInput(title string, validator func(string) error) string {
10 | prompt := promptui.Prompt{
11 | Label: title,
12 | Validate: validator,
13 | }
14 | result, err := prompt.Run()
15 | if err != nil {
16 | Fatal("User input failed", err)
17 | }
18 | return result
19 | }
20 |
21 | func GetMaskedInput(title string, validator func(string) error) string {
22 | prompt := promptui.Prompt{
23 | Label: title,
24 | Validate: validator,
25 | Mask: '*',
26 | }
27 | result, err := prompt.Run()
28 | if err != nil {
29 | Fatal("User input failed", err)
30 | }
31 | return result
32 | }
33 |
34 | func DestructiveConfirmation() {
35 | prompt := promptui.Prompt{
36 | Label: "What you are about to do could be destructive, continue?",
37 | IsConfirm: true,
38 | }
39 | result, err := prompt.Run()
40 | if err != nil {
41 | Fatal("destructive confirmation failed", err)
42 | }
43 | if strings.ToLower(result) != "y" {
44 | Error("Aborted!")
45 | FatalQuiet("destructive confirmation rejected", err)
46 | }
47 | }
48 |
--------------------------------------------------------------------------------
/ui/loading.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "os"
5 | "time"
6 |
7 | "github.com/briandowns/spinner"
8 | "github.com/spf13/viper"
9 | "github.com/willfantom/reticulating-go"
10 | )
11 |
12 | var (
13 | loadingSpinner *spinner.Spinner
14 | loadingMessageFunc func() string
15 | )
16 |
17 | func init() {
18 | loadingSpinner = spinner.New(spinner.CharSets[2], 100*time.Millisecond, spinner.WithWriter(os.Stderr))
19 | loadingSpinner.HideCursor = true
20 | loadingSpinner.Color("white")
21 | loadingMessageFunc = reticulating.GetLoadingMessage
22 | }
23 |
24 | func StartSpinner() {
25 | if viper.GetBool("showLoadingSpinner") {
26 | loadingSpinner.Start()
27 | go updateLoadingMessage()
28 | }
29 | }
30 |
31 | func updateLoadingMessage() {
32 | for loadingSpinner.Active() {
33 | loadingSpinner.Suffix = " " + loadingMessageFunc()
34 | time.Sleep(500 * time.Millisecond)
35 | }
36 | }
37 |
38 | func StopSpinner() {
39 | loadingSpinner.Stop()
40 | }
41 |
--------------------------------------------------------------------------------
/ui/selection.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "github.com/manifoldco/promptui"
5 | "github.com/sirupsen/logrus"
6 | )
7 |
8 | func Selector(title string, options []string) (int, string) {
9 | prompt := promptui.Select{
10 | Label: title,
11 | Items: options,
12 | Size: 5,
13 | }
14 | logrus.WithField("title", title).Traceln("running selector menu")
15 | index, option, err := prompt.Run()
16 | if err != nil {
17 | logrus.WithField("title", title).Errorln("selector menu failed")
18 | FatalQuiet("Selector Failed", err)
19 | }
20 | logrus.WithField("selection", option).Traceln("ending selector menu")
21 | return index, option
22 | }
23 |
24 | func SelectorTemplated(title string, options interface{}, template *promptui.SelectTemplates) (int, string) {
25 | prompt := promptui.Select{
26 | Label: title,
27 | Items: options,
28 | Size: 5,
29 | Templates: template,
30 | }
31 | logrus.WithField("title", title).Traceln("running selector menu")
32 | index, option, err := prompt.Run()
33 | if err != nil {
34 | logrus.WithField("title", title).Errorln("selector menu failed")
35 | FatalQuiet("Selector Failed", err)
36 | }
37 | logrus.WithField("selection", option).Traceln("ending selector menu")
38 | return index, option
39 | }
40 |
--------------------------------------------------------------------------------
/utility/debugging.go:
--------------------------------------------------------------------------------
1 | package utility
2 |
3 | import (
4 | "github.com/go-resty/resty/v2"
5 | "github.com/sirupsen/logrus"
6 | "github.com/willfantom/goverseerr"
7 | )
8 |
9 | var preRequestMiddleware = func(c *resty.Client, req *resty.Request) error {
10 | logrus.WithFields(logrus.Fields{
11 | "url": c.HostURL,
12 | "authscheme": c.AuthScheme,
13 | "requestUrl": req.URL,
14 | }).Traceln("made api request")
15 | return nil
16 | }
17 |
18 | var postResponseMiddleware = func(c *resty.Client, resp *resty.Response) error {
19 | logrus.WithFields(logrus.Fields{
20 | "url": c.HostURL,
21 | "authscheme": c.AuthScheme,
22 | "responseStatus": resp.Status(),
23 | }).Traceln("received api response")
24 | return nil
25 | }
26 |
27 | var requestErrorMiddleware = func(req *resty.Request, err error) {
28 | if v, ok := err.(*resty.ResponseError); ok {
29 | logrus.WithFields(logrus.Fields{
30 | "lastResponse": v.Response,
31 | "originalError": v.Err,
32 | }).Errorln("api request error")
33 | }
34 | logrus.Errorln("inextendable api request error")
35 | }
36 |
37 | // AddWrappersToOverseerr ensures that all overseerr requests will be logged
38 | func AddWrappersToOverseerr(o *goverseerr.Overseerr) {
39 | o.RegisterPostResponseMiddleware(postResponseMiddleware)
40 | o.RegisterPreRequestMiddleware(preRequestMiddleware)
41 | o.RegisterRequestErrorMiddleware(requestErrorMiddleware)
42 | }
43 |
--------------------------------------------------------------------------------
/utility/profiles.go:
--------------------------------------------------------------------------------
1 | package utility
2 |
3 | import (
4 | "errors"
5 |
6 | "github.com/sirupsen/logrus"
7 | "github.com/spf13/viper"
8 | "github.com/willfantom/goverseerr"
9 | "github.com/willfantom/overclirr/ui"
10 | )
11 |
12 | type OverseerrAuthType string
13 |
14 | const (
15 | OverseerrAuthTypeKey OverseerrAuthType = "key"
16 | OverseerrAuthTypeLocal OverseerrAuthType = "local"
17 | OverseerrAuthTypePlex OverseerrAuthType = "plex"
18 | )
19 |
20 | // OverseerrAuthConfig contains the authorization details for an account
21 | type OverseerrAuthConfig struct {
22 | Type OverseerrAuthType `json:"type"`
23 | Key string `json:"key,omitempty"`
24 | Email string `json:"email,omitempty"`
25 | Password string `json:"password,omitempty"`
26 | PlexToken string `json:"plexToken,omitempty"`
27 | }
28 |
29 | // OverseerrProfile contains all the details to login to an account on Overseerr
30 | type OverseerrProfile struct {
31 | URL string `json:"url"`
32 | CustomHeaders map[string]string `json:"customHeaders"`
33 | Locale string `json:"locale" default:"en"`
34 | Auth OverseerrAuthConfig `json:"auth"`
35 | }
36 |
37 | // QuickValidate ensures both the URL and Locale are valid for a profile
38 | func (c OverseerrProfile) QuickValidate() error {
39 | if err := URLValidator(c.URL); err != nil {
40 | return err
41 | }
42 | if err := LocaleValidator(c.Locale); err != nil {
43 | return err
44 | }
45 | return nil
46 | }
47 |
48 | // Connect creates a logged in Overseerr instance from a profile
49 | func (p OverseerrProfile) Connect() (*goverseerr.Overseerr, error) {
50 | switch p.Auth.Type {
51 | case OverseerrAuthTypeKey:
52 | logrus.Debugln("connecting to overseerr using a key based profile")
53 | if o, err := goverseerr.NewKeyAuth(p.URL, p.CustomHeaders, p.Locale, p.Auth.Key); err == nil {
54 | return o, nil
55 | } else {
56 | return nil, err
57 | }
58 | case OverseerrAuthTypeLocal:
59 | logrus.Debugln("connecting to overseerr using a email/password based profile")
60 | if o, err := goverseerr.NewLocalAuth(p.URL, p.CustomHeaders, p.Locale, p.Auth.Email, p.Auth.Password); err == nil {
61 | return o, nil
62 | } else {
63 | return nil, err
64 | }
65 | case OverseerrAuthTypePlex:
66 | logrus.Debugln("connecting to overseerr using a plex token based profile")
67 | if o, err := goverseerr.NewPlexAuth(p.URL, p.CustomHeaders, p.Locale, p.Auth.PlexToken); err == nil {
68 | return o, nil
69 | } else {
70 | return nil, err
71 | }
72 | default:
73 | return nil, errors.New("profile has an invalid authorization type: " + string(p.Auth.Type))
74 | }
75 | }
76 |
77 | // GetAllOverseerrProfiles returns all configured overseerr profiles
78 | // and panics if fails
79 | func GetAllOverseerrProfiles() map[string]OverseerrProfile {
80 | profiles := make(map[string]OverseerrProfile)
81 | if err := viper.UnmarshalKey("profiles", &profiles); err != nil {
82 | ui.Fatal("Failed to parse Overseerr profiles from the file", err)
83 | }
84 | return profiles
85 | }
86 |
87 | // GetOverseerrProfile returns a configured overseerr profile if it exists.
88 | // If not, an error is returned
89 | func GetOverseerrProfile(profileName string) (OverseerrProfile, error) {
90 | profiles := GetAllOverseerrProfiles()
91 | if profile, ok := profiles[profileName]; ok {
92 | return profile, nil
93 | }
94 | return OverseerrProfile{}, errors.New("overseerr profile not found")
95 | }
96 |
97 | // WriteOverseerrProfile writes a profile to the configuration
98 | func WriteOverseerrProfile(profileName string, profile OverseerrProfile, overwrite bool) error {
99 | if err := profile.QuickValidate(); err != nil {
100 | return err
101 | }
102 | profiles := GetAllOverseerrProfiles()
103 | if _, ok := profiles[profileName]; ok && !overwrite {
104 | return errors.New("overseer profile with that name already exists")
105 | }
106 | profiles[profileName] = profile
107 | viper.Set("profiles", profiles)
108 | if err := viper.WriteConfig(); err != nil {
109 | return err
110 | }
111 | return nil
112 | }
113 |
114 | // WriteOverseerrProfile writes a profile to the configuration
115 | func DeleteOverseerrProfile(profileName string) error {
116 | profiles := GetAllOverseerrProfiles()
117 | if _, ok := profiles[profileName]; !ok {
118 | return errors.New("profile with name '" + profileName + "' does not exist")
119 | }
120 | delete(profiles, profileName)
121 | viper.Set("profiles", profiles)
122 | if err := viper.WriteConfig(); err != nil {
123 | return err
124 | }
125 | return nil
126 | }
127 |
128 | func SelectProfileAuthType() OverseerrAuthType {
129 | options := []string{"API Key [admins]", "Plex Token", "Email/Password"}
130 | idx, _ := ui.Selector("What auth type should be used?", options)
131 | switch idx {
132 | case 0:
133 | return OverseerrAuthTypeKey
134 | case 1:
135 | return OverseerrAuthTypePlex
136 | case 2:
137 | return OverseerrAuthTypeLocal
138 | }
139 | return OverseerrAuthTypeKey
140 | }
141 |
--------------------------------------------------------------------------------
/utility/validators.go:
--------------------------------------------------------------------------------
1 | package utility
2 |
3 | import (
4 | "errors"
5 | "net/url"
6 | "regexp"
7 |
8 | "golang.org/x/text/language"
9 | )
10 |
11 | func URLValidator(u string) error {
12 | if len(u) == 0 {
13 | return errors.New("url must not be empty")
14 | }
15 | if parsedURL, err := url.Parse(u); err != nil {
16 | return errors.New("not parseable as a url")
17 | } else {
18 | if !parsedURL.IsAbs() {
19 | return errors.New("url must be absolute (have a scheme such as https://)")
20 | }
21 | }
22 | return nil
23 | }
24 |
25 | func LocaleValidator(l string) error {
26 | if _, err := language.Parse(l); err != nil {
27 | return errors.New("locale not known")
28 | }
29 | return nil
30 | }
31 |
32 | func NonEmptyValidator(in string) error {
33 | if len(in) == 0 {
34 | return errors.New("cannot be empty")
35 | }
36 | return nil
37 | }
38 |
39 | func EmailValidator(in string) error {
40 | var emailRegex = regexp.MustCompile("^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
41 | if !emailRegex.MatchString(in) {
42 | return errors.New("must be a valid email address")
43 | }
44 | return nil
45 | }
46 |
--------------------------------------------------------------------------------