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

yitsushi / totp-cli / 5585194062
27%
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:36AM UTC
Jobs 1
Files 19
Run time 2s
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
5585194062

push

github

web-flow
refactor: use urfave/cli instead of yitsushi/go-commander (#79)

* 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>

* fix linting issues

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

---------

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

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

149 of 867 relevant lines covered (17.19%)

1.32 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
0.0
0.0% internal/cmd/error.go
18
0.0
0.0% internal/cmd/instant.go
27
0.0
0.0% internal/cmd/list.go
30
0.0
0.0% internal/cmd/change_password.go
36
0.0
0.0% internal/cmd/dump.go
36
0.0
0.0% internal/cmd/import.go
36
0.0
0.0% internal/cmd/update.go
42
0.0
0.0% internal/cmd/add_token.go
45
0.0
0.0% internal/cmd/set_prefix.go
46
0.0
0.0% internal/cmd/delete.go
49
0.0
0.0% internal/cmd/generate.go

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% internal/cmd/add_token.go
1
0.0
0.0% internal/cmd/delete.go
1
0.0
0.0% internal/cmd/error.go
1
0.0
0.0% internal/cmd/set_prefix.go
2
0.0
0.0% internal/cmd/import.go
2
0.0
0.0% internal/cmd/update.go
Jobs
ID Job ID Ran Files Coverage
1 5585194062.1 18 Jul 2023 08:36AM UTC 19
17.19
GitHub Action Run
Source Files on build 5585194062
  • Tree
  • List 19
  • Changed 19
  • Source Changed 19
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fc57e415 on github
  • Prev Build on main (#4892172471)
  • Next Build on main (#5585205865)
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