restic/cmd/restic
Lionel Sausin 8fbe328371 Properly report the ID of newly added keys
Other commands like key list and key remove show the key's ID.

Showing the ID here lets users easily reuse the ID as a key hint for subsequent
commands.
In particular, a key hint is needed when the repository has many keys - otherwise
opening the repository may fail with "Fatal: maximum number of keys reached" even
when a proper password is provided.

Fixes #4656
2024-01-29 10:12:49 +01:00
..
testdata
.gitignore
cleanup.go Print stacktrace in SIGINT handler if RESTIC_DEBUG_STACKTRACE_SIGINT set 2023-04-23 15:50:40 +02:00
cmd_backup.go Merge pull request #4647 from MichaelEischer/reduce-globals 2024-01-23 19:46:15 +01:00
cmd_backup_integration_test.go restic-from-command: use standard behavior when no output and exit code 0 from command 2023-10-27 23:58:51 +02:00
cmd_backup_test.go
cmd_cache.go always access stdout/stderr via globalOptions 2023-05-26 19:38:44 +02:00
cmd_cat.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_cat_test.go cat: extract parameter validation and add a test 2023-08-13 19:17:46 +02:00
cmd_check.go Fix typos 2023-12-06 13:11:55 +01:00
cmd_check_integration_test.go test: add helper to capture stdout for integration tests 2023-05-26 19:38:44 +02:00
cmd_check_test.go Fix typos 2023-12-06 13:11:55 +01:00
cmd_copy.go deduplicate string formatting of snapshot metadata 2024-01-06 20:20:51 +01:00
cmd_copy_integration_test.go Restructure integration tests 2023-05-26 19:38:43 +02:00
cmd_debug.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_diff.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_diff_integration_test.go always access stdout/stderr via globalOptions 2023-05-26 19:38:44 +02:00
cmd_dump.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_dump_test.go
cmd_find.go walker: Remove ignoreTrees functionality 2024-01-19 21:16:06 +01:00
cmd_find_integration_test.go read JSON/Quiet flag from the passed in globalOptions 2023-05-26 19:38:44 +02:00
cmd_forget.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_forget_integration_test.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_forget_test.go forget: simplify test 2023-07-28 19:21:40 +02:00
cmd_generate.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_init.go Fix repository not being printed when using repository file 2024-01-08 21:33:05 +01:00
cmd_init_integration_test.go Restructure integration tests 2023-05-26 19:38:43 +02:00
cmd_key.go Properly report the ID of newly added keys 2024-01-29 10:12:49 +01:00
cmd_key_integration_test.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_list.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_list_integration_test.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_ls.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_ls_integration_test.go read JSON/Quiet flag from the passed in globalOptions 2023-05-26 19:38:44 +02:00
cmd_ls_test.go
cmd_migrate.go
cmd_mount.go mount: detect mountpoint does not exist before opening the repository 2023-12-24 11:54:18 +01:00
cmd_mount_integration_test.go Restructure integration tests 2023-05-26 19:38:43 +02:00
cmd_options.go
cmd_prune.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_prune_integration_test.go Remove all usages of the global command-specific options 2024-01-23 19:21:39 +01:00
cmd_recover.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_repair.go Rename 'rebuild-index' to 'repair index' 2023-05-01 15:16:44 +02:00
cmd_repair_index.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_repair_index_integration_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
cmd_repair_packs.go repository: Replace StreamPack function with LoadBlobsFromPack method 2024-01-19 21:40:43 +01:00
cmd_repair_snapshots.go deduplicate string formatting of snapshot metadata 2024-01-06 20:20:51 +01:00
cmd_repair_snapshots_integration_test.go Restructure integration tests 2023-05-26 19:38:43 +02:00
cmd_restore.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_restore_integration_test.go restore: pass termStatus to restore in tests 2023-06-09 12:03:33 +02:00
cmd_rewrite.go deduplicate string formatting of snapshot metadata 2024-01-06 20:20:51 +01:00
cmd_rewrite_integration_test.go rewrite: cleanup tests 2023-12-24 15:36:22 +01:00
cmd_self_update.go
cmd_snapshots.go Fix typos 2023-12-06 13:11:55 +01:00
cmd_snapshots_integration_test.go read JSON/Quiet flag from the passed in globalOptions 2023-05-26 19:38:44 +02:00
cmd_snapshots_test.go
cmd_stats.go walker: Remove ignoreTrees functionality 2024-01-19 21:16:06 +01:00
cmd_stats_test.go stats: Add debug mode to collect repository statistics 2023-07-08 23:04:47 +02:00
cmd_tag.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_tag_integration_test.go Restructure integration tests 2023-05-26 19:38:43 +02:00
cmd_unlock.go
cmd_version.go Split `go_target` into `go_os` and `go_arch` 2023-11-01 22:43:38 +01:00
delete.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
doc.go
exclude.go cmd, ui: Move size parsing code and make it more robust 2023-07-02 21:44:50 +02:00
exclude_test.go cmd, ui: Move size parsing code and make it more robust 2023-07-02 21:44:50 +02:00
find.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
flags_test.go
format.go Refactor formatNode 2023-06-08 19:12:49 +02:00
format_test.go Make formatNode test timezone independent 2023-06-08 19:18:30 +02:00
global.go Merge branch 'patch-release' 2024-01-14 21:38:17 +01:00
global_debug.go
global_release.go
global_test.go test: add helper to capture stdout for integration tests 2023-05-26 19:38:44 +02:00
integration_filter_pattern_test.go Remove unused context or testing parameters 2023-05-18 21:17:53 +02:00
integration_helpers_test.go CI: update golangci-lint 2024-01-08 21:33:05 +01:00
integration_helpers_unix_test.go
integration_helpers_windows_test.go
integration_test.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
lock.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
lock_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
main.go don't load password when autocompleting CLI commands 2023-10-23 21:44:22 +02:00
progress.go Only show index progress bar if stdout is a terminal 2023-10-23 21:16:52 +02:00
secondary_repo.go
secondary_repo_test.go