• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yitsushi / totp-cli / 5584998495
17%
master: 20%

Build:
Build:
LAST BUILD BRANCH: dependabot/go_modules/golang.org/x/crypto-0.45.0
DEFAULT BRANCH: master
Ran 18 Jul 2023 08:17AM UTC
Jobs 1
Files 19
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5584998495

push

github

yitsushi
refactor: use urfave/cli instead of yitsushi/go-commander

My CLI lib[^1] was a good exercise and an experiment[^2] 7 years ago. Back
then, I did not plan to use it that long.

I tried to keep the interface the same as it was before. Some changed,
but I don't think anyone will notice as only `dump` and `import`
changes.

* The `import` command now requires an `--input` flag instead of a
  positional argument.
* The `dump` command now required a `--yes-please` flag to make sure the
  user understands that the exported content will NOT be encrypted.
* The `dump` command now requires an `--output` flag, stdout is not the
  default behaviour. If someone really wants to dump secrets to
  stdout... Well, you can use `--output=/dev/stdout`.

Bug fixes:
* Import did not import Prefix on overwrite.

Closes #39

[^1]: https://github.com/yitsushi/go-commander
[^2]: https://github.com/yitsushi/totp-cli/issues/78#issuecomment-1639523393

Signed-off-by: Efertone <efertone@pm.me>

364 of 364 new or added lines in 11 files covered. (100.0%)

149 of 869 relevant lines covered (17.15%)

1.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
internal/cmd/error.go
18
0.0
internal/cmd/instant.go
27
0.0
internal/cmd/list.go
30
0.0
internal/cmd/change_password.go
35
0.0
internal/cmd/dump.go
36
0.0
internal/cmd/import.go
36
0.0
internal/cmd/update.go
42
0.0
internal/cmd/add_token.go
44
0.0
internal/cmd/delete.go
45
0.0
internal/cmd/set_prefix.go
49
0.0
internal/cmd/generate.go
Jobs
ID Job ID Ran Files Coverage
1 5584998495.1 18 Jul 2023 08:17AM UTC 19
17.15
GitHub Action Run
Source Files on build 5584998495
  • Tree
  • List 19
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9e2d93bb on github
  • Next Build on use-urfave (#5585136080)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc