diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2021-02-10 09:18:31 +0000 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2021-02-10 12:35:20 +0100 |
commit | 46b014bad5f1d471a2ebfd819dfdf33a184ea109 (patch) | |
tree | 2743957c7d5919f25846037421a0ef8963c6b266 /vendor/gopkg.in/yaml.v2/yaml.go | |
parent | 055e2dda3a1888d319d542abe8735e791e736451 (diff) | |
download | podman-46b014bad5f1d471a2ebfd819dfdf33a184ea109.tar.gz podman-46b014bad5f1d471a2ebfd819dfdf33a184ea109.tar.bz2 podman-46b014bad5f1d471a2ebfd819dfdf33a184ea109.zip |
Bump github.com/spf13/cobra from 1.1.1 to 1.1.2
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.2)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'vendor/gopkg.in/yaml.v2/yaml.go')
-rw-r--r-- | vendor/gopkg.in/yaml.v2/yaml.go | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/vendor/gopkg.in/yaml.v2/yaml.go b/vendor/gopkg.in/yaml.v2/yaml.go index 89650e293..30813884c 100644 --- a/vendor/gopkg.in/yaml.v2/yaml.go +++ b/vendor/gopkg.in/yaml.v2/yaml.go @@ -175,7 +175,7 @@ func unmarshal(in []byte, out interface{}, strict bool) (err error) { // Zero valued structs will be omitted if all their public // fields are zero, unless they implement an IsZero // method (see the IsZeroer interface type), in which -// case the field will be included if that method returns true. +// case the field will be excluded if IsZero returns true. // // flow Marshal using a flow style (useful for structs, // sequences and maps). @@ -464,3 +464,15 @@ func isZero(v reflect.Value) bool { } return false } + +// FutureLineWrap globally disables line wrapping when encoding long strings. +// This is a temporary and thus deprecated method introduced to faciliate +// migration towards v3, which offers more control of line lengths on +// individual encodings, and has a default matching the behavior introduced +// by this function. +// +// The default formatting of v2 was erroneously changed in v2.3.0 and reverted +// in v2.4.0, at which point this function was introduced to help migration. +func FutureLineWrap() { + disableLineWrapping = true +} |