Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## [1.9.6](https://github.com/replydev/cotp/compare/v1.9.5...v1.9.6) (2025-06-02)


### Bug Fixes

* do not throw error on empty otp database, in list subcommand ([0222faf](https://github.com/replydev/cotp/commit/0222fafe1a855a7ad41e04a09084ebde223c5874))
* do not throw error on empty otp database, in list subcommand ([#568](https://github.com/replydev/cotp/issues/568)) ([1c921ef](https://github.com/replydev/cotp/commit/1c921efcdf57e74bd041bc7ec9142109d0245b92))

## [1.9.5](https://github.com/replydev/cotp/compare/v1.9.4...v1.9.5) (2025-05-17)


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cotp"
version = "1.9.5"
version = "1.9.6"
authors = ["replydev <commoncargo@tutanota.com>"]
edition = "2024"
description = "Trustworthy, encrypted, command-line TOTP/HOTP authenticator app with import functionality."
Expand Down
4 changes: 4 additions & 0 deletions src/arguments/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ impl SubcommandExecutor for ListArgs {
.map_err(|e| eyre!("Error during JSON serialization: {:?}", e))?;
print!("{stringified}");
} else {
if otp_database.elements.is_empty() {
println!("No elements to list");
return Ok(otp_database);
}
let issuer_width = calculate_width(&otp_database, |element| {
let issuer_length = element.issuer.chars().count();
if issuer_length > 0 {
Expand Down