Compare commits

...

39 Commits

Author SHA1 Message Date
Renovate 14644a1a1e chore(deps): update module github.com/urfave/cli/v2 to v2.27.1 (#59)
Reviewed-on: #59
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2023-12-31 07:36:18 +00:00
Renovate 552809b62b chore(deps): update module golang.org/x/crypto to v0.17.0 (#58)
Reviewed-on: #58
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2023-12-28 06:26:02 +00:00
Renovate b876350d58 chore(deps): update module golang.org/x/crypto to v0.16.0 (#53)
Reviewed-on: #53
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2023-12-14 05:04:50 +00:00
Renovate 027e30243f chore(deps): update module github.com/urfave/cli/v2 to v2.26.0 (#55)
Reviewed-on: #55
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2023-12-13 04:23:55 +00:00
Dawid Wysokiński bf094d564b
feat: migrate from drone to woodpecker & update deps
ci/woodpecker/push/test Pipeline was successful Details
2023-08-20 07:36:08 +02:00
Renovate 6d5ae4d8de chore(deps): update module golang.org/x/crypto to v0.12.0 (#49)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #49
Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-committed-by: Renovate <renovate@dwysokinski.me>
2023-08-06 04:18:30 +00:00
renovate 89b5e3335d chore(deps): update module golang.org/x/crypto to v0.11.0 (#46)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #46
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-07-06 03:24:00 +00:00
renovate b1b935f683 chore(deps): update module golang.org/x/crypto to v0.10.0 (#44)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #44
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-06-14 03:39:33 +00:00
renovate 32f714cec7 chore(deps): update module github.com/urfave/cli/v2 to v2.25.6 (#42)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #42
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-06-13 03:21:17 +00:00
renovate ddf2bf9f4b chore(deps): update module golang.org/x/term to v0.9.0 (#43)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #43
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-06-13 03:21:00 +00:00
renovate 67e7e2bcd5 chore(deps): update module github.com/urfave/cli/v2 to v2.25.5 (#39)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #39
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-06-01 10:04:20 +00:00
renovate 6014168dc7 chore(deps): update module github.com/stretchr/testify to v1.8.4 (#40)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #40
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-31 03:30:52 +00:00
renovate 9e09849a99 chore(deps): update golangci/golangci-lint docker tag to v1.52 (#33)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #33
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-29 03:57:49 +00:00
renovate 27f3e811bd chore(deps): update module github.com/urfave/cli/v2 to v2.25.4 (#38)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #38
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-29 03:57:14 +00:00
renovate dffde828fe chore(deps): update module github.com/urfave/cli/v2 to v2.25.3 (#23)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #23
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-21 14:38:34 +00:00
renovate 7e4bf1c6bf chore(deps): update module golang.org/x/crypto to v0.9.0 (#37)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #37
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-20 20:06:00 +00:00
renovate 494271d9c9 chore(deps): update module github.com/pquerna/otp to v1.4.0 (#19)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #19
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-20 20:05:16 +00:00
renovate 312cb18647 chore(deps): update module github.com/stretchr/testify to v1.8.3 (#29)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #29
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-20 04:14:03 +00:00
renovate f6dd5a650e chore(deps): update module golang.org/x/term to v0.8.0 (#36)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #36
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-06 04:08:51 +00:00
renovate 11f681a974 chore(deps): update module golang.org/x/crypto to v0.8.0 (#35)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #35
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-05-05 03:59:10 +00:00
renovate 9c52a7c74c chore(deps): update module golang.org/x/term to v0.7.0 (#34)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #34
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-04-07 03:37:30 +00:00
renovate e112742fda chore(deps): update module golang.org/x/crypto to v0.7.0 (#30)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/crypto](https://github.com/golang/crypto) | require | minor | `v0.6.0` -> `v0.7.0` |

---

### Release Notes

<details>
<summary>golang/crypto</summary>

### [`v0.7.0`](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNTIuNCIsInVwZGF0ZWRJblZlciI6IjM0LjE1Mi40In0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #30
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-03-12 08:31:58 +00:00
renovate 404523f2da chore(deps): update module golang.org/x/crypto to v0.6.0 (#28)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/crypto](https://github.com/golang/crypto) | require | minor | `v0.5.0` -> `v0.6.0` |

---

### Release Notes

<details>
<summary>golang/crypto</summary>

### [`v0.6.0`](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.5.0...v0.6.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #28
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-09 04:24:26 +00:00
renovate 0338ab78cd chore(deps): update module golang.org/x/term to v0.5.0 (#26)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/term](https://github.com/golang/term) | require | minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>golang/term</summary>

### [`v0.5.0`](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

[Compare Source](https://github.com/golang/term/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #26
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-08 05:08:29 +00:00
renovate f774db3b10 chore(deps): update golang docker tag to v1.20 (#24)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golang | docker | minor | `1.19` -> `1.20` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #24
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-08 05:08:22 +00:00
renovate 17b1e1d443 chore(deps): update golangci/golangci-lint docker tag to v1.51 (#25)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golangci/golangci-lint | docker | minor | `v1.50` -> `v1.51` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xMTQuMSIsInVwZGF0ZWRJblZlciI6IjM0LjExNC4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #25
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-02-08 04:38:39 +00:00
renovate a36bda9473 chore(deps): update module golang.org/x/crypto to v0.5.0 (#21)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/crypto](https://github.com/golang/crypto) | require | minor | `v0.4.0` -> `v0.5.0` |

---

### Release Notes

<details>
<summary>golang/crypto</summary>

### [`v0.5.0`](https://github.com/golang/crypto/compare/v0.4.0...v0.5.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.4.0...v0.5.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC43NC4yIiwidXBkYXRlZEluVmVyIjoiMzQuNzQuMiJ9-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #21
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2023-01-23 04:43:19 +00:00
Dawid Wysokiński bea90fb621 fix: lint - p.Start is deprecated (#18)
continuous-integration/drone/push Build is passing Details
Reviewed-on: #18
2022-12-11 17:59:46 +00:00
Dawid Wysokiński 3b778a7883
chore: update dependencies
continuous-integration/drone/push Build is failing Details
2022-12-11 10:41:31 +01:00
Dawid Wysokiński b56b3cc3ce
chore: update README.md
continuous-integration/drone/push Build is passing Details
2022-12-11 10:35:16 +01:00
renovate e56aa8db6d chore(deps): update module golang.org/x/crypto to v0.4.0 (#16)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/crypto](https://github.com/golang/crypto) | require | minor | `v0.0.0-20220829220503-c86fa9a7ed90` -> `v0.4.0` |

---

### Release Notes

<details>
<summary>golang/crypto</summary>

### [`v0.4.0`](https://github.com/golang/crypto/compare/v0.3.0...v0.4.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.3.0...v0.4.0)

### [`v0.3.0`](https://github.com/golang/crypto/compare/v0.2.0...v0.3.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.2.0...v0.3.0)

### [`v0.2.0`](https://github.com/golang/crypto/compare/v0.1.0...v0.2.0)

[Compare Source](https://github.com/golang/crypto/compare/v0.1.0...v0.2.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMjQuMCIsInVwZGF0ZWRJblZlciI6IjM0LjIzLjAifQ==-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #16
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-12-11 07:59:27 +00:00
renovate fb96774544 chore(deps): update golangci/golangci-lint docker tag to v1.50 (#13)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| golangci/golangci-lint | docker | minor | `v1.49` -> `v1.50` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMDEuMSIsInVwZGF0ZWRJblZlciI6IjMyLjIwMS4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #13
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-10-05 03:35:18 +00:00
renovate 62ac341584 chore(deps): update module github.com/urfave/cli/v2 to v2.17.1 (#11)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v2](https://github.com/urfave/cli) | require | minor | `v2.16.2` -> `v2.17.1` |

---

### Release Notes

<details>
<summary>urfave/cli</summary>

### [`v2.17.1`](https://github.com/urfave/cli/releases/tag/v2.17.1)

[Compare Source](https://github.com/urfave/cli/compare/v2.17.0...v2.17.1)

#### What's Changed

-   Fix help results inconsistency by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1499

**Full Changelog**: https://github.com/urfave/cli/compare/v2.17.0...v2.17.1

### [`v2.17.0`](https://github.com/urfave/cli/releases/tag/v2.17.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.6...v2.17.0)

#### What's Changed

-   Flag-level Action by [@&#8203;xwjdsh](https://github.com/xwjdsh) in https://github.com/urfave/cli/pull/1337

#### New Contributors

-   [@&#8203;xwjdsh](https://github.com/xwjdsh) made their first contribution in https://github.com/urfave/cli/pull/1337

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.6...v2.17.0

### [`v2.16.6`](https://github.com/urfave/cli/releases/tag/v2.16.6)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.5...v2.16.6)

#### What's Changed

-   fix: Context.Set no such flag by [@&#8203;Torwang1](https://github.com/Torwang1) in https://github.com/urfave/cli/pull/1497

#### New Contributors

-   [@&#8203;Torwang1](https://github.com/Torwang1) made their first contribution in https://github.com/urfave/cli/pull/1497

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.5...v2.16.6

### [`v2.16.5`](https://github.com/urfave/cli/releases/tag/v2.16.5)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.4...v2.16.5)

#### What's Changed

-   Fix:(issue\_1197) Set destination field from altsrc for slice flags by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1495

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.4...v2.16.5

### [`v2.16.4`](https://github.com/urfave/cli/releases/tag/v2.16.4)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.3...v2.16.4)

#### What's Changed

-   Accept the `MKDOCS_REMOTE_GITHUB_TOKEN` var as intended by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1493

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.3...v2.16.4

### [`v2.16.3`](https://github.com/urfave/cli/releases/tag/v2.16.3)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.2...v2.16.3)

#### What's Changed

-   Move more functionality into internal/build/build.go by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1490

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.2...v2.16.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTQuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIwMS4xIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #11
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-30 03:42:59 +00:00
renovate 8b68af3831 chore(deps): update module github.com/urfave/cli/v2 to v2.16.2 (#10)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v2](https://github.com/urfave/cli) | require | minor | `v2.14.1` -> `v2.16.2` |

---

### Release Notes

<details>
<summary>urfave/cli</summary>

### [`v2.16.2`](https://github.com/urfave/cli/releases/tag/v2.16.2)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.1...v2.16.2)

#### What's Changed

-   Fix: Help name consistency among app/commands and subcommands by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1489

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.1...v2.16.2

### [`v2.16.1`](https://github.com/urfave/cli/releases/tag/v2.16.1)

[Compare Source](https://github.com/urfave/cli/compare/v2.16.0...v2.16.1)

#### What's Changed

-   Set codecov status thresholds to 5% by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1486
-   Fix: dont generate pointer for dest for Generic flag by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1488

**Full Changelog**: https://github.com/urfave/cli/compare/v2.16.0...v2.16.1

### [`v2.16.0`](https://github.com/urfave/cli/releases/tag/v2.16.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.15.0...v2.16.0)

#### What's Changed

-   Feature:(Issue 1334) Add support for uint64slices by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1378

**Full Changelog**: https://github.com/urfave/cli/compare/v2.15.0...v2.16.0

### [`v2.15.0`](https://github.com/urfave/cli/releases/tag/v2.15.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.14.2...v2.15.0)

#### What's Changed

-   Add count option for bool flags by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1257

**Full Changelog**: https://github.com/urfave/cli/compare/v2.14.2...v2.15.0

### [`v2.14.2`](https://github.com/urfave/cli/releases/tag/v2.14.2)

[Compare Source](https://github.com/urfave/cli/compare/v2.14.1...v2.14.2)

#### What's Changed

-   Update version of codecov action by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1480
-   Add a few notes to release docs by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1479

**Full Changelog**: https://github.com/urfave/cli/compare/v2.14.1...v2.14.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTAuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4zIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #10
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-12 03:45:33 +00:00
renovate 92cdf4c204 chore(deps): update golang.org/x/crypto digest to c86fa9a (#5)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [golang.org/x/crypto](https://github.com/golang/crypto) | require | digest | `793ad66` -> `c86fa9a` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTAuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5MC4zIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Co-authored-by: Dawid Wysokiński <contact@dwysokinski.me>
Reviewed-on: #5
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-07 14:07:38 +00:00
renovate 2d678edf3b chore(deps): update module github.com/stretchr/testify to v1.8.0 (#8)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/stretchr/testify](https://github.com/stretchr/testify) | require | minor | `v1.7.2` -> `v1.8.0` |

---

### Release Notes

<details>
<summary>stretchr/testify</summary>

### [`v1.8.0`](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

[Compare Source](https://github.com/stretchr/testify/compare/v1.7.5...v1.8.0)

### [`v1.7.5`](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

[Compare Source](https://github.com/stretchr/testify/compare/v1.7.4...v1.7.5)

### [`v1.7.4`](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.4)

[Compare Source](https://github.com/stretchr/testify/compare/v1.7.3...v1.7.4)

### [`v1.7.3`](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3)

[Compare Source](https://github.com/stretchr/testify/compare/v1.7.2...v1.7.3)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTAuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5MC4zIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #8
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-07 13:53:07 +00:00
renovate 5e22792377 chore(deps): update module github.com/urfave/cli/v2 to v2.14.1 (#9)
continuous-integration/drone/push Build is passing Details
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [github.com/urfave/cli/v2](https://github.com/urfave/cli) | require | minor | `v2.10.2` -> `v2.14.1` |

---

### Release Notes

<details>
<summary>urfave/cli</summary>

### [`v2.14.1`](https://github.com/urfave/cli/releases/tag/v2.14.1)

[Compare Source](https://github.com/urfave/cli/compare/v2.14.0...v2.14.1)

#### What's Changed

-   Fix:(issue\_1272) Generic flag not set from env by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1458
-   GitHub Workflows security hardening by [@&#8203;sashashura](https://github.com/sashashura) in https://github.com/urfave/cli/pull/1469

#### New Contributors

-   [@&#8203;sashashura](https://github.com/sashashura) made their first contribution in https://github.com/urfave/cli/pull/1469

**Full Changelog**: https://github.com/urfave/cli/compare/v2.14.0...v2.14.1

### [`v2.14.0`](https://github.com/urfave/cli/releases/tag/v2.14.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.13.0...v2.14.0)

#### What's Changed

-   Update v2 dead link by [@&#8203;abousselmi](https://github.com/abousselmi) in https://github.com/urfave/cli/pull/1466
-   Fix:(issue\_1293) Wrap usage text for commands by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1460
-   Add App.InvalidFlagAccessHandler by [@&#8203;icholy](https://github.com/icholy) in https://github.com/urfave/cli/pull/1446

#### New Contributors

-   [@&#8203;abousselmi](https://github.com/abousselmi) made their first contribution in https://github.com/urfave/cli/pull/1466
-   [@&#8203;icholy](https://github.com/icholy) made their first contribution in https://github.com/urfave/cli/pull/1446

**Full Changelog**: https://github.com/urfave/cli/compare/v2.13.0...v2.14.0

### [`v2.13.0`](https://github.com/urfave/cli/releases/tag/v2.13.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.12.3...v2.13.0)

#### What's Changed

-   Fix:(issue\_1094) Dont execute Before/After handlers during shell comp… by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1457
-   Fix:(issue\_1455) Allow bool flags from input altsrc by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1456
-   Add configurable Base to int, uint and uint64 flags by [@&#8203;ccremer](https://github.com/ccremer) in https://github.com/urfave/cli/pull/1464
-   fix: allow required flag with one character by [@&#8203;Gerrard-YNWA](https://github.com/Gerrard-YNWA) in https://github.com/urfave/cli/pull/1449
-   Add support for alias in YAMLs by [@&#8203;james-prysm](https://github.com/james-prysm) in https://github.com/urfave/cli/pull/1448

#### New Contributors

-   [@&#8203;ccremer](https://github.com/ccremer) made their first contribution in https://github.com/urfave/cli/pull/1464
-   [@&#8203;Gerrard-YNWA](https://github.com/Gerrard-YNWA) made their first contribution in https://github.com/urfave/cli/pull/1449
-   [@&#8203;james-prysm](https://github.com/james-prysm) made their first contribution in https://github.com/urfave/cli/pull/1448

**Full Changelog**: https://github.com/urfave/cli/compare/v2.12.3...v2.13.0

### [`v2.12.3`](https://github.com/urfave/cli/releases/tag/v2.12.3)

[Compare Source](https://github.com/urfave/cli/compare/v2.12.2...v2.12.3)

#### What's Changed

-   issue\_62: Make slice options more posix like by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1454
-   Move genflags tool to cmd/ and pin to previous release by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1451
-   Shift supported go versions by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1452
-   docs: split documentation into individual pages by [@&#8203;hay-kot](https://github.com/hay-kot) in https://github.com/urfave/cli/pull/1453

#### New Contributors

-   [@&#8203;hay-kot](https://github.com/hay-kot) made their first contribution in https://github.com/urfave/cli/pull/1453

**Full Changelog**: https://github.com/urfave/cli/compare/v2.12.1...v2.12.3

### [`v2.12.2`](https://github.com/urfave/cli/releases/tag/v2.12.2)

[Compare Source](https://github.com/urfave/cli/compare/v2.12.1...v2.12.2)

#### What's Changed

-   issue\_62: Make slice options more posix like by [@&#8203;dearchap](https://github.com/dearchap) in https://github.com/urfave/cli/pull/1454
-   Move genflags tool to cmd/ and pin to previous release by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1451
-   Shift supported go versions by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1452
-   docs: split documentation into individual pages by [@&#8203;hay-kot](https://github.com/hay-kot) in https://github.com/urfave/cli/pull/1453

#### New Contributors

-   [@&#8203;hay-kot](https://github.com/hay-kot) made their first contribution in https://github.com/urfave/cli/pull/1453

**Full Changelog**: https://github.com/urfave/cli/compare/v2.12.1...v2.12.2

### [`v2.12.1`](https://github.com/urfave/cli/releases/tag/v2.12.1)

[Compare Source](https://github.com/urfave/cli/compare/v2.12.0...v2.12.1)

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.5...v2.12.1

### [`v2.12.0`](https://github.com/urfave/cli/releases/tag/v2.12.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.5...v2.12.0)

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.2...v2.12.0

### [`v2.11.5`](https://github.com/urfave/cli/releases/tag/v2.11.5)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.4...v2.11.5)

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.2...v2.11.5

### [`v2.11.4`](https://github.com/urfave/cli/releases/tag/v2.11.4)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.3...v2.11.4)

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.2...v2.11.4

### [`v2.11.3`](https://github.com/urfave/cli/releases/tag/v2.11.3)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.2...v2.11.3)

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.2...v2.11.3

### [`v2.11.2`](https://github.com/urfave/cli/releases/tag/v2.11.2)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.1...v2.11.2)

#### What's Changed

-   Fix HideHelp by [@&#8203;Dokiys](https://github.com/Dokiys) in https://github.com/urfave/cli/pull/1445
-   Fix After not run by [@&#8203;Dokiys](https://github.com/Dokiys) in https://github.com/urfave/cli/pull/1444

#### New Contributors

-   [@&#8203;Dokiys](https://github.com/Dokiys) made their first contribution in https://github.com/urfave/cli/pull/1445

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.1...v2.11.2

### [`v2.11.1`](https://github.com/urfave/cli/releases/tag/v2.11.1)

[Compare Source](https://github.com/urfave/cli/compare/v2.11.0...v2.11.1)

#### What's Changed

-   Fix timestamp flag error when using help by [@&#8203;hmiyado](https://github.com/hmiyado) in https://github.com/urfave/cli/pull/1439

#### New Contributors

-   [@&#8203;hmiyado](https://github.com/hmiyado) made their first contribution in https://github.com/urfave/cli/pull/1439

**Full Changelog**: https://github.com/urfave/cli/compare/v2.11.0...v2.11.1

### [`v2.11.0`](https://github.com/urfave/cli/releases/tag/v2.11.0)

[Compare Source](https://github.com/urfave/cli/compare/v2.10.3...v2.11.0)

#### What's Changed

-   feature: add DefaultCommand field to App by [@&#8203;jalavosus](https://github.com/jalavosus) in https://github.com/urfave/cli/pull/1388
-   accept timezone for timestamps by [@&#8203;julian7](https://github.com/julian7) in https://github.com/urfave/cli/pull/1432
-   Approve v2 addition of App.DefaultCommand by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1426

#### New Contributors

-   [@&#8203;jalavosus](https://github.com/jalavosus) made their first contribution in https://github.com/urfave/cli/pull/1388
-   [@&#8203;julian7](https://github.com/julian7) made their first contribution in https://github.com/urfave/cli/pull/1432

**Full Changelog**: https://github.com/urfave/cli/compare/v2.10.3...v2.11.0

### [`v2.10.3`](https://github.com/urfave/cli/releases/tag/v2.10.3)

[Compare Source](https://github.com/urfave/cli/compare/v2.10.2...v2.10.3)

#### What's Changed

-   Clean up the v2 manual a bit by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1421
-   Fix list formatting in v2 manual by [@&#8203;meatballhat](https://github.com/meatballhat) in https://github.com/urfave/cli/pull/1423

**Full Changelog**: https://github.com/urfave/cli/compare/v2.10.2...v2.10.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTAuMyIsInVwZGF0ZWRJblZlciI6IjMyLjE5MC4zIn0=-->

Co-authored-by: Renovate <renovate@dwysokinski.me>
Reviewed-on: #9
Co-authored-by: renovate <renovate@noreply.localhost>
Co-committed-by: renovate <renovate@noreply.localhost>
2022-09-07 10:19:44 +00:00
Dawid Wysokiński b31777d3f9
chore: update README.md
continuous-integration/drone/push Build is passing Details
2022-09-04 10:05:48 +02:00
Dawid Wysokiński 7f6690ac91
chore: update README.md
continuous-integration/drone/push Build is passing Details
2022-09-04 10:05:35 +02:00
8 changed files with 200 additions and 136 deletions

View File

@ -1,54 +0,0 @@
---
kind: pipeline
type: docker
name: test
steps:
- name: test
image: golang:1.19
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
trigger:
event:
- push
- pull_request
branch:
- master
---
kind: pipeline
type: docker
name: check-go-mod
steps:
- name: check go.mod
image: golang:1.19
commands:
- go mod tidy
- git diff --exit-code go.mod
trigger:
event:
- push
- pull_request
branch:
- master
---
kind: pipeline
type: docker
name: golangci-lint
steps:
- name: run golangci-lint
image: golangci/golangci-lint:v1.49
commands:
- golangci-lint run
trigger:
event:
- push
- pull_request
branch:
- master

View File

@ -1,15 +1,19 @@
run:
tests: true
timeout: 5m
linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bodyclose
- deadcode
- bidichk
- exportloopref
- depguard
- dupl
- errcheck
- gocritic
- gosec
- gofmt
- goimports
- gosimple
@ -19,19 +23,86 @@ linters:
- nakedret
- prealloc
- staticcheck
- structcheck
- typecheck
- unconvert
- unused
- varcheck
- lll
- nestif
- thelper
- nonamedreturns
- gocyclo
- tenv
- testpackage
- noctx
- tparallel
- usestdlibvars
- unconvert
- makezero
- grouper
- errname
- exhaustive
- tagliatelle
- contextcheck
- gocheckcompilerdirectives
- errname
- forcetypeassert
- durationcheck
- predeclared
- promlinter
- wastedassign
linters-settings:
lll:
line-length: 150
gocyclo:
min-complexity: 10
depguard:
rules:
main:
files:
- "$all"
deny:
- pkg: reflect
desc: Please don't use reflect package
- pkg: github.com/pkg/errors
desc: Should be replaced by standard lib errors package
govet:
enable:
- asmdecl
- assign
- atomic
- atomicalign
- bools
- buildtag
- cgocall
- composites
- copylocks
- deepequalerrors
- errorsas
- findcall
- framepointer
- httpresponse
- ifaceassert
- loopclosure
- lostcancel
- nilfunc
- nilness
- printf
- reflectvaluecompare
- shadow
- shift
- sigchanyzer
- sortslice
- stdmethods
- stringintconv
- structtag
- testinggoroutine
- tests
- unmarshal
- unreachable
- unsafeptr
- unusedresult
- unusedwrite
issues:
exclude-rules:
@ -39,6 +110,10 @@ issues:
- path: _test\.go
linters:
- dupl
- gocyclo
- linters:
- lll
source: "^//go:generate "
- linters:
- lll
source: "^// @Param"

31
.woodpecker/test.yml Normal file
View File

@ -0,0 +1,31 @@
when:
- event: [pull_request]
- event: push
branch:
- ${CI_REPO_DEFAULT_BRANCH}
variables:
- &go_image 'golang:1.21'
steps:
test:
image: *go_image
group: test
pull: true
commands:
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
lint:
image: golangci/golangci-lint:v1.54
pull: true
group: test
commands:
- golangci-lint run
check-go-mod:
image: *go_image
group: test
pull: true
commands:
- go mod tidy
- git diff --exit-code go.mod

View File

@ -1,31 +1,39 @@
### gootp
gootp is a terminal-based 2FA (Two-Factor Authentication) app.
[![asciicast](https://asciinema.org/a/s9eF7EbqgnCkoLVwbv0TE0a8Y.svg)](https://asciinema.org/a/s9eF7EbqgnCkoLVwbv0TE0a8Y)
gootp is a terminal-based 2FA (Two-Factor Authentication) app.
## Features
- Supported algorithms: TOTP
- Compatible with [andOTP](https://github.com/andOTP/andOTP) file format
- Allows to encrypt/decrypt andOTP files on your PC
- Compatible with [andOTP](https://github.com/andOTP/andOTP) backup file format
- Encrypt/decrypt andOTP backup files on your PC
## Installation
Requirements:
1. Go 1.18+
2. [Exported andOTP file](https://github.com/andOTP/andOTP#backups=)
Prerequisites:
1. Go 1.21+
2. [Backup file](https://github.com/andOTP/andOTP#backups=)
```shell
go install github.com/Kichiyaki/gootp@latest
cp /path/to/andotp/file ~/.otp_accounts.json # !IMPORTANT! this file must be encrypted
go install gitea.dwysokinski.me/Kichiyaki/gootp@latest
cp /path/to/andotp/file ~/.otp_accounts.json # !IMPORTANT! this backup file must be encrypted
```
## Examples
```shell
gootp # show OTP list
gootp -h # help for gootp
gootp -p /path/to/andotp/file/.otp_accounts.json # override default path
gootp --password xxx # specify encryption password via flag
gootp -p /path/to/andotp/file/.otp_accounts.json encrypt -o /output/.otp_accounts.json.aes # encrypt file
gootp -p /path/to/andotp/file/.otp_accounts.json decrypt -o /output/.otp_accounts.json.aes # decrypt file
gootp # start gootp
gootp -h # show a list of commands
gootp -p /path/to/andotp/file/.otp_accounts.json # override the default path
gootp --password xxx # specify an encryption password via flag
gootp -p /path/to/andotp/file/.otp_accounts.json encrypt -o /output/.otp_accounts.json.aes # encrypt a file
gootp -p /path/to/andotp/file/.otp_accounts.json.aes decrypt -o /output/.otp_accounts.json # decrypt a file
```
## License
Distributed under the MIT License. See ``LICENSE`` for more information.
## Contact
Dawid Wysokiński - [contact@dwysokinski.me](mailto:contact@dwysokinski.me)

36
go.mod
View File

@ -1,36 +1,40 @@
module gitea.dwysokinski.me/Kichiyaki/gootp
go 1.19
go 1.21
require (
github.com/charmbracelet/bubbles v0.13.0
github.com/charmbracelet/bubbletea v0.22.0
github.com/charmbracelet/lipgloss v0.5.0
github.com/pquerna/otp v1.3.0
github.com/stretchr/testify v1.7.2
github.com/urfave/cli/v2 v2.10.2
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467
github.com/charmbracelet/bubbles v0.16.1
github.com/charmbracelet/bubbletea v0.24.2
github.com/charmbracelet/lipgloss v0.7.1
github.com/pquerna/otp v1.4.0
github.com/stretchr/testify v1.8.4
github.com/urfave/cli/v2 v2.27.1
golang.org/x/crypto v0.17.0
golang.org/x/term v0.15.0
)
require (
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
github.com/containerd/console v1.0.3 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.14 // indirect
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
github.com/muesli/cancelreader v0.2.1 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739 // indirect
github.com/muesli/termenv v0.15.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sahilm/fuzzy v0.1.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

80
go.sum
View File

@ -1,46 +1,45 @@
github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4=
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc h1:biVzkmvwrH8WK8raXaxBx6fRVTlJILwEwQGL1I/ByEI=
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
github.com/charmbracelet/bubbles v0.13.0 h1:zP/ROH3wJEBqZWKIsD50ZKKlx3ydLInq3LdD/Nrlb8w=
github.com/charmbracelet/bubbles v0.13.0/go.mod h1:bbeTiXwPww4M031aGi8UK2HT9RDWoiNibae+1yCMtcc=
github.com/charmbracelet/bubbletea v0.21.0/go.mod h1:GgmJMec61d08zXsOhqRC/AiOx4K4pmz+VIcRIm1FKr4=
github.com/charmbracelet/bubbletea v0.22.0 h1:E1BTNSE3iIrq0G0X6TjGAmrQ32cGCbFDPcIuImikrUc=
github.com/charmbracelet/bubbletea v0.22.0/go.mod h1:aoVIwlNlr5wbCB26KhxfrqAn0bMp4YpJcoOelbxApjs=
github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao=
github.com/charmbracelet/lipgloss v0.5.0 h1:lulQHuVeodSgDez+3rGiuxlPVXSnhth442DATR2/8t8=
github.com/charmbracelet/lipgloss v0.5.0/go.mod h1:EZLha/HbzEt7cYqdFPovlqy5FZPj0xFhg5SaqxScmgs=
github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw=
github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U=
github.com/charmbracelet/bubbles v0.16.1 h1:6uzpAAaT9ZqKssntbvZMlksWHruQLNxg49H5WdeuYSY=
github.com/charmbracelet/bubbles v0.16.1/go.mod h1:2QCp9LFlEsBQMvIYERr7Ww2H2bA7xen1idUDIzm/+Xc=
github.com/charmbracelet/bubbletea v0.24.2 h1:uaQIKx9Ai6Gdh5zpTbGiWpytMU+CfsPp06RaW2cx/SY=
github.com/charmbracelet/bubbletea v0.24.2/go.mod h1:XdrNrV4J8GiyshTtx3DNuYkR1FDaJmO3l2nejekbsgg=
github.com/charmbracelet/lipgloss v0.7.1 h1:17WMwi7N1b1rVWOjMT+rCh7sQkvDU75B2hbZpc5Kc1E=
github.com/charmbracelet/lipgloss v0.7.1/go.mod h1:yG0k3giv8Qj8edTCbbg6AlQ5e8KNWpFujkNawKNhE2c=
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w=
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
github.com/mattn/go-runewidth v0.0.10/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU=
github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/mattn/go-runewidth v0.0.14 h1:+xnbZSEeDbOIg5/mE6JF0w6n9duR1l3/WmbinWVwUuU=
github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b h1:1XF24mVaiu7u+CFywTdcDo2ie1pzzhwjt6RHqzpMU34=
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b/go.mod h1:fQuZ0gauxyBcmsdE3ZT4NasjaRdxmbCS0jRHsrWu3Ho=
github.com/muesli/cancelreader v0.2.0/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/cancelreader v0.2.1 h1:Xzd1B4U5bWQOuSKuN398MyynIGTNT89dxzpEDsalXZs=
github.com/muesli/cancelreader v0.2.1/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68/go.mod h1:Xk+z4oIWdQqJzsxyjgl3P22oYZnHdZ8FFTHAQQt5BMQ=
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
github.com/muesli/termenv v0.11.1-0.20220204035834-5ac8409525e0/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs=
github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739 h1:QANkGiGr39l1EESqrE0gZw0/AJNYzIvoGLhIoVYtluI=
github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs=
github.com/muesli/termenv v0.15.1 h1:UzuTb/+hhlBugQz28rpzey4ZuKcZ03MeKsoG7IJZIxs=
github.com/muesli/termenv v0.15.1/go.mod h1:HeAQPTzpfs016yGtA4g00CsdYnVLJvxsS4ANqrZs2sQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pquerna/otp v1.3.0 h1:oJV/SkzR33anKXwQU3Of42rL4wbrffP4uvUf1SvS5Xs=
github.com/pquerna/otp v1.3.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/pquerna/otp v1.4.0 h1:wZvl1TIVxKRThZIBiwOOHOGP/1+nZyWBil9Y2XNEDzg=
github.com/pquerna/otp v1.4.0/go.mod h1:dkJfzwRKNiegxyNb54X/3fLwhCynbMspSyWKnvi1AEg=
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
@ -50,23 +49,24 @@ github.com/sahilm/fuzzy v0.1.0 h1:FzWGaw2Opqyu+794ZQ9SYifWv2EIXpwP4q8dY1kDAwI=
github.com/sahilm/fuzzy v0.1.0/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/urfave/cli/v2 v2.10.2 h1:x3p8awjp/2arX+Nl/G2040AZpOCHS/eMJJ1/a+mye4Y=
github.com/urfave/cli/v2 v2.10.2/go.mod h1:f8iq5LtQ/bLxafbdBSLPPNsgaW0l/2fYYEHhAyPlwvo=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/urfave/cli/v2 v2.27.1 h1:8xSQ6szndafKVRmfyeUMxkNUJQMjL1F2zmsZ+qHpfho=
github.com/urfave/cli/v2 v2.27.1/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU=
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e h1:T8NU3HyQ8ClP4SEE+KbFlg6n0NhuTsN4MyznaarGsZM=
golang.org/x/crypto v0.0.0-20220525230936-793ad666bf5e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 h1:rm+CHSpPEEW2IsXUib1ThaHIjuBVZjxNgSKmBLFfD4c=
golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467 h1:CBpWXWQpIRjzmkkA+M7q9Fqnwd2mZr3AFqexg8YTfoM=
golang.org/x/term v0.0.0-20220526004731-065cf7ba2467/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=

View File

@ -4,7 +4,7 @@ import (
"crypto/aes"
"crypto/cipher"
"crypto/rand"
"crypto/sha1"
"crypto/sha1" //nolint:gosec
"encoding/binary"
"encoding/json"
"fmt"
@ -34,11 +34,11 @@ func Encrypt(plaintext, password []byte) ([]byte, error) {
binary.BigEndian.PutUint32(iter, uint32(iterations))
if _, err := rand.Read(iv); err != nil {
if _, err = rand.Read(iv); err != nil {
return nil, fmt.Errorf("rand.Read(iv): %w", err)
}
if _, err := rand.Read(salt); err != nil {
if _, err = rand.Read(salt); err != nil {
return nil, fmt.Errorf("rand.Read(salt): %w", err)
}
@ -119,7 +119,7 @@ func DecryptAsEntries(text, password []byte) ([]Entry, error) {
}
var entries []Entry
if err := json.Unmarshal(result, &entries); err != nil {
if err = json.Unmarshal(result, &entries); err != nil {
return nil, fmt.Errorf("json.Unmarshal: %w", err)
}

View File

@ -54,7 +54,7 @@ func newApp() (*cli.App, error) {
}
p := tea.NewProgram(internal.NewUI(entries), tea.WithAltScreen())
if err := p.Start(); err != nil {
if _, err := p.Run(); err != nil {
return fmt.Errorf("p.Start: %w", err)
}
@ -86,7 +86,7 @@ func newApp() (*cli.App, error) {
func newDecryptCommand() *cli.Command {
return &cli.Command{
Name: "decrypt",
Usage: "Decrypts the specified file",
Usage: "Decrypts a file",
Action: newEncryptDecryptActionFunc(internal.Decrypt),
Flags: []cli.Flag{
&cli.StringFlag{
@ -102,7 +102,7 @@ func newDecryptCommand() *cli.Command {
func newEncryptCommand() *cli.Command {
return &cli.Command{
Name: "encrypt",
Usage: "Encrypts the specified file",
Usage: "Encrypts a file",
Action: newEncryptDecryptActionFunc(internal.Encrypt),
Flags: []cli.Flag{
&cli.StringFlag{