1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-01-03 13:45:20 +00:00
restic/cmd/restic
Sebastian Hoß 333fe1c3cf Align Stdin and StdinCommand in conditionals
In order to run with --stdin-from-command we need to short-circuit some functions similar to how it is handled for the --stdin flag. The only difference here is that --stdin-from-command actually expects that len(args) should be greater 0 whereas --stdin does not expect any args at all.

Signed-off-by: Sebastian Hoß <seb@xn--ho-hia.de>
2023-10-27 23:58:51 +02:00
..
testdata
.gitignore
cleanup.go
cmd_backup.go Align Stdin and StdinCommand in conditionals 2023-10-27 23:58:51 +02:00
cmd_backup_integration_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
cmd_backup_test.go
cmd_cache.go
cmd_cat.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_cat_test.go
cmd_check.go repair packs: Add stub feature flag implementation 2023-10-23 18:36:28 +02:00
cmd_check_integration_test.go
cmd_check_test.go
cmd_copy.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_copy_integration_test.go
cmd_debug.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_diff.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_diff_integration_test.go
cmd_dump.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_dump_test.go
cmd_find.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_find_integration_test.go
cmd_forget.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_forget_integration_test.go
cmd_forget_test.go
cmd_generate.go
cmd_init.go
cmd_init_integration_test.go
cmd_key.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_key_integration_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
cmd_list.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_list_integration_test.go
cmd_ls.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_ls_integration_test.go
cmd_ls_test.go
cmd_migrate.go
cmd_mount.go deduplicate index progress bar setup 2023-10-01 19:53:26 +02:00
cmd_mount_integration_test.go
cmd_options.go
cmd_prune.go prune: get backend connection count via repository 2023-10-25 23:01:54 +02:00
cmd_prune_integration_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
cmd_recover.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_repair.go
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 move Backend interface to backend package 2023-10-25 23:00:18 +02:00
cmd_repair_snapshots.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_repair_snapshots_integration_test.go
cmd_restore.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_restore_integration_test.go
cmd_rewrite.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_rewrite_integration_test.go
cmd_self_update.go
cmd_snapshots.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_snapshots_integration_test.go
cmd_snapshots_test.go
cmd_stats.go stats: fix hardlink tracking in a snapshot 2023-10-27 23:40:42 +02:00
cmd_stats_test.go
cmd_tag.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
cmd_tag_integration_test.go
cmd_unlock.go
cmd_version.go
delete.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
doc.go
exclude.go
exclude_test.go
find.go convert MemorizeList to be repository based 2023-10-25 23:01:35 +02:00
flags_test.go
format.go
format_test.go
global.go move Backend interface to backend package 2023-10-25 23:00:18 +02:00
global_debug.go
global_release.go
global_test.go
integration_filter_pattern_test.go
integration_helpers_test.go move Backend interface to backend package 2023-10-25 23:00:18 +02: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