mirror of https://github.com/restic/restic.git
Merge pull request #5240 from MichaelEischer/better-json-docs
Improve JSON output type documentation
This commit is contained in:
commit
5190933561
|
@ -100,7 +100,7 @@ func (p *jsonLsPrinter) Snapshot(sn *restic.Snapshot) error {
|
|||
type lsSnapshot struct {
|
||||
*restic.Snapshot
|
||||
ID *restic.ID `json:"id"`
|
||||
ShortID string `json:"short_id"`
|
||||
ShortID string `json:"short_id"` // deprecated
|
||||
MessageType string `json:"message_type"` // "snapshot"
|
||||
StructType string `json:"struct_type"` // "snapshot", deprecated
|
||||
}
|
||||
|
|
|
@ -324,7 +324,7 @@ type Snapshot struct {
|
|||
*restic.Snapshot
|
||||
|
||||
ID *restic.ID `json:"id"`
|
||||
ShortID string `json:"short_id"`
|
||||
ShortID string `json:"short_id"` // deprecated
|
||||
}
|
||||
|
||||
// SnapshotGroup helps to print SnapshotGroups as JSON with their GroupReasons included.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue