mirror of
https://github.com/restic/restic.git
synced 2026-11-23 13:52:39 +00:00
global: make private fields public
This commit is contained in:
1 parent
394c8de502
commit
2c677d8db4
62 files changed
+258
-259
No files matched your search
@@ -24,7 +24,7 @@ Exit status is 1 if there was any error.
|
||||
`,
|
||||
DisableAutoGenTag: true,
|
||||
Run: func(_ *cobra.Command, _ []string) {
|
||||
printer := ui.NewProgressPrinter(globalOptions.JSON, globalOptions.verbosity, globalOptions.term)
|
||||
printer := ui.NewProgressPrinter(globalOptions.JSON, globalOptions.Verbosity, globalOptions.Term)
|
||||
|
||||
if globalOptions.JSON {
|
||||
type jsonVersion struct {
|
||||
@@ -43,7 +43,7 @@ Exit status is 1 if there was any error.
|
||||
GoArch: runtime.GOARCH,
|
||||
}
|
||||
|
||||
err := json.NewEncoder(globalOptions.term.OutputWriter()).Encode(jsonS)
|
||||
err := json.NewEncoder(globalOptions.Term.OutputWriter()).Encode(jsonS)
|
||||
if err != nil {
|
||||
printer.E("JSON encode failed: %v\n", err)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user