Michael Eischer
69186350fc
diff: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
3e7aad8916
debug: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
c3912ae7bc
cat: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
d3e26f2868
ls: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
2e91e81c83
mount: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
0dcd9bee88
rewrite: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
a304826b98
repair snapshots: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
8510f09225
stats: convert to termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
e63aee2ec6
copy: convert to use termstatus
2025-09-15 22:17:26 +02:00
Michael Eischer
94b19d64be
termstatus: allow retrieving the underlying writer
...
This is intended for special cases where it must be guaranteed that the
output on stdout exactly matches what was written to the io.Writer.
2025-09-15 22:17:26 +02:00
Michael Eischer
03600ca509
termstatus: don't buffer stdout
...
There's not much use in doing so as nearly every write call was paired
with a flush call. Thus, just use an unbuffered writer.
2025-09-15 21:22:07 +02:00
Michael Eischer
ef9930cce4
fix capturing stdout with termstatus
2025-09-15 20:25:17 +02:00
Michael Eischer
91ecac8003
termstatus: fix crash when printing empty string
2025-09-15 20:25:17 +02:00
Michael Eischer
e9b6149303
list: cleanup parameter order of test helper
2025-09-15 20:25:17 +02:00
Michael Eischer
32b7168a9e
centralize index progress bar for termstatus
2025-09-15 20:25:17 +02:00
Michael Eischer
6cdb9a75e6
consider JSON flag in newTerminalProgressPrinter
2025-09-15 20:25:17 +02:00
Michael Eischer
9ef8e13102
slightly polish changelogs
2025-09-15 19:52:24 +02:00
Michael Eischer
4940e330c0
Merge pull request #5508 from restic/patch-release-cherrypicks
...
Patch release cherrypicks
2025-09-15 19:51:51 +02:00
Michael Eischer
3a63430b07
extend changelog
2025-09-15 19:34:25 +02:00
Michael Eischer
a5e814bd8d
check: fix error reporting on download retry
2025-09-15 19:34:25 +02:00
Michael Eischer
398862c5c8
docs: sync compatibility section with website
...
This is no change in policy, just a more precise description of the
status quo.
2025-09-15 19:33:39 +02:00
Michael Eischer
b47c67fd90
update dependencies
2025-09-15 19:33:20 +02:00
Michael Eischer
81fe559222
Merge pull request #5495 from MichaelEischer/fix-check-retries
...
check: fix error reporting on download retry
2025-09-15 19:31:44 +02:00
Michael Eischer
f21fd9d115
Merge pull request #5494 from MichaelEischer/fix-background-handling
...
Refactor terminal background handling
2025-09-13 22:48:11 +02:00
Michael Eischer
d757e39992
make linter happy
2025-09-13 22:22:53 +02:00
Srigovind Nayak
ce089f7e2d
errors: standardize error wrapping for Fatal errors
...
* replace all occurences of `errors.Fatal(err.Error())` with `errors.Fatalf("%s", err)` so that the error wrapping is correct across the codebase
* updated the review comments
2025-09-13 23:32:40 +05:30
Srigovind Nayak
576d35b37b
changelog: add bugfix changelog for issue-5258
2025-09-13 23:32:40 +05:30
Srigovind Nayak
18b8f8870f
tests: add tests for preserving underlying errors
2025-09-13 23:32:39 +05:30
Srigovind Nayak
79c41966af
errors: enhance fatalError type to include underlying errors
2025-09-13 23:32:39 +05:30
Michael Eischer
c0a30e12b4
extend changelog
2025-09-08 11:54:29 +02:00
Michael Eischer
de29d74707
check: fix error reporting on download retry
2025-09-08 11:45:28 +02:00
Michael Eischer
424316e016
extend background handling changelog
2025-09-08 11:04:53 +02:00
Michael Eischer
b71b77fa77
terminal: unexport tcgetpgrp, tcsetpgrp and getpgrp
2025-09-08 11:04:38 +02:00
Michael Eischer
e7890d7b81
use standard line clearing in printProgress
2025-09-08 11:04:24 +02:00
Michael Eischer
529baf50f8
simplify message printing when restic receives signal
2025-09-08 11:04:11 +02:00
Michael Eischer
d10bd1d321
terminal: move reading password from terminal here
2025-09-08 11:03:56 +02:00
Michael Eischer
43b5166de8
terminal: cleanup determining width
2025-09-08 11:03:42 +02:00
Michael Eischer
0b0dd07f15
consolidate checks whether stdin/stdout is terminal
2025-09-08 11:03:26 +02:00
Michael Eischer
93ccc548c8
termstatus: move cursor handling to terminal package
2025-09-08 11:03:17 +02:00
Michael Eischer
0ab38faa2e
termstatus: track current status also in background
...
Without this, restic could temporarily print an outdated status when
moving back into the foreground.
2025-09-08 10:50:53 +02:00
Michael Eischer
48cbbf9651
ui/termstatus: extract background handling code
2025-09-08 10:50:09 +02:00
Michael Eischer
6ff7cd9050
backend/util: extract background handling code
2025-09-08 10:42:35 +02:00
Michael Eischer
cc1fe6c111
Merge pull request #5493 from greatroar/ioctl
...
backend,termstatus: Unify foreground/background detection
2025-09-08 10:40:36 +02:00
greatroar
1ed93bd54d
backend,termstatus: Unify foreground/background detection
...
PR #5358 reintroduced a version of the TIOCGPGRP ioctl call that works
on all Unix platforms except Linux, due to a bug/inconsistency in
x/sys/unix. This commit fixes that by introducing termstatus.Tcgetpgrp.
It also introduces termstatus.Getpgrp and termstatus.Tcsetpgrp to deal
with the different signature of unix.Getpgrp in Solaris vs. all other
Unix platforms and an int-overflowing constant on AIX, so that some
AIX/Solaris-specific code can be removed elsewhere and
foreground/background detection is done the same everywhere except on
Windows.
2025-09-08 09:33:44 +02:00
Michael Eischer
c55df65bb6
Merge pull request #5490 from MichaelEischer/sync-compatibility-section
...
docs: sync compatibility section with website
2025-09-07 11:35:48 +02:00
Michael Eischer
289adebbb7
Merge pull request #5492 from MichaelEischer/update-dependencies
...
update dependencies
2025-09-07 11:34:37 +02:00
Michael Eischer
eef047cfa4
update dependencies
2025-09-06 22:58:30 +02:00
Michael Eischer
6d7e37edce
Merge pull request #5491 from MichaelEischer/patch-release-cherrypicks
...
Patch release cherrypicks
2025-09-06 22:32:40 +02:00
dependabot[bot]
4998fd68a7
build(deps): bump docker/login-action from 3.4.0 to 3.5.0
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](74a5d14239...184bdaa072 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-version: 3.5.0
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-09-06 22:07:22 +02:00
greatroar
06cc6017b8
internal/restic: Fix panic in ParseDuration
...
Fixes #5485 . Includes test case by @MichaelEischer.
2025-09-06 22:03:12 +02:00