forked from TrueCloudLab/restic
Better name for jsonstatus package
internal/ui/jsonstatus and termstatus sound similar but are not related in any way. Instead `internal/ui/backup` and `internal/ui/jsonstatus/status` are the counterparts. Rename the latter to `internal/ui/json/backup` to make this clear.
This commit is contained in:
parent
ef70a2fcb3
commit
42a3292bcf
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ import (
|
||||||
"github.com/restic/restic/internal/restic"
|
"github.com/restic/restic/internal/restic"
|
||||||
"github.com/restic/restic/internal/textfile"
|
"github.com/restic/restic/internal/textfile"
|
||||||
"github.com/restic/restic/internal/ui"
|
"github.com/restic/restic/internal/ui"
|
||||||
"github.com/restic/restic/internal/ui/jsonstatus"
|
"github.com/restic/restic/internal/ui/json"
|
||||||
"github.com/restic/restic/internal/ui/termstatus"
|
"github.com/restic/restic/internal/ui/termstatus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -447,7 +447,7 @@ func runBackup(opts BackupOptions, gopts GlobalOptions, term *termstatus.Termina
|
||||||
|
|
||||||
var p ArchiveProgressReporter
|
var p ArchiveProgressReporter
|
||||||
if gopts.JSON {
|
if gopts.JSON {
|
||||||
p = jsonstatus.NewBackup(term, gopts.verbosity)
|
p = json.NewBackup(term, gopts.verbosity)
|
||||||
} else {
|
} else {
|
||||||
p = ui.NewBackup(term, gopts.verbosity)
|
p = ui.NewBackup(term, gopts.verbosity)
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package jsonstatus
|
package json
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
Loading…
Reference in a new issue