Kim Alvefur
0b54f9caca
Add initial test for Lua encoder
...
Boilerplate mostly copied from toml_test.go
2023-08-05 17:08:38 +02:00
Kim Alvefur
58d14f7ea9
Return error instead of panic in Lua encoder
2023-08-05 17:08:38 +02:00
Kim Alvefur
f544580692
Add note about how Lua nil is unsuitable as table key
...
Could add some context tracking in the future to allow rejecting nil in
a table key context.
2023-08-05 17:08:38 +02:00
Kim Alvefur
5b7c00aa62
Reject unhandled scalar Tags in Lua encoder
2023-08-05 17:08:38 +02:00
Kim Alvefur
7830940a9a
Handle special-case numbers in Lua encoder
2023-08-05 17:08:38 +02:00
Kim Alvefur
32277e2c7c
Handle YAML case varied booleans in Lua encoder
2023-08-05 17:08:38 +02:00
Kim Alvefur
1ff44c5d52
Panic on unhandled YAML Kind in Lua encoder
2023-08-05 17:08:38 +02:00
Kim Alvefur
03560a3d84
Allow special characters in Lua prefix and suffix
...
--lua-suffix='});^M' didn't work, so taking this approach instead
2023-08-05 17:08:38 +02:00
Kim Alvefur
c4de13e874
Hook up settings for Lua output
2023-08-05 17:08:38 +02:00
Kim Alvefur
cabb73b12c
Make output of unquoted Lua table keys optional
...
Generally safer and simpler to not do it.
2023-08-05 17:08:38 +02:00
Kim Alvefur
c8919f20da
Quote Lua keywords in table keys
...
Keywords are not valid as unquoted keys, thus must be quoted
2023-08-05 17:08:38 +02:00
Kim Alvefur
21fda2eb3d
Print simple keys unquoted in Lua output
...
String keys that satisfy the requirements for variable names can be used
as keys without quotes in tables.
2023-08-05 17:08:38 +02:00
Kim Alvefur
21c64fa945
Escape larger set of characters in Lua output
...
Started with a minimum of replacements, this should be more complete,
tho not all substitutions are strictly required in Lua.
2023-08-05 17:08:38 +02:00
Kim Alvefur
07b53fca7d
Implement basic Lua output support
...
Ref #1700
Basic but working serialization to Lua tables.
2023-08-05 17:08:38 +02:00
dependabot[bot]
9b4082919b
Bump golang from 1.20.6 to 1.20.7 ( #1749 )
...
Bumps golang from 1.20.6 to 1.20.7.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 13:52:57 +10:00
dependabot[bot]
1d611f04fb
Bump golang.org/x/net from 0.12.0 to 0.13.0 ( #1750 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/net/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-03 13:52:40 +10:00
dependabot[bot]
1dee08aa38
Bump github.com/pelletier/go-toml/v2 from 2.0.8 to 2.0.9 ( #1732 )
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.8 to 2.0.9.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.8...v2.0.9 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-28 13:28:05 +10:00
dependabot[bot]
a68be7debf
Bump golang from 1.20.5 to 1.20.6 ( #1725 )
...
Bumps golang from 1.20.5 to 1.20.6.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-18 08:52:19 +10:00
Mike Farah
0b34c9a00d
Bumping version
2023-07-12 12:32:14 +10:00
Mike Farah
9cb0918206
Release notes
2023-07-12 12:32:04 +10:00
dependabot[bot]
dde183386c
Bump golang.org/x/net from 0.11.0 to 0.12.0 ( #1719 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/net/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-12 12:27:51 +10:00
dependabot[bot]
b762da38f0
Bump golang.org/x/net from 0.10.0 to 0.11.0 ( #1695 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:57:29 +10:00
dependabot[bot]
cb521fd05a
Bump golang from 1.20.4 to 1.20.5 ( #1690 )
...
Bumps golang from 1.20.4 to 1.20.5.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:39:39 +10:00
dependabot[bot]
22ad68d142
Bump golang.org/x/text from 0.9.0 to 0.10.0 ( #1696 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.9.0 to 0.10.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 09:39:08 +10:00
dependabot[bot]
845d4ae389
Bump github.com/pelletier/go-toml/v2 from 2.0.7 to 2.0.8 ( #1673 )
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.7 to 2.0.8.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.7...v2.0.8 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-28 12:31:29 +10:00
Mike Farah
fcc04823ca
Added docs on base64 only working with utf8 content
2023-05-23 15:38:08 +10:00
Mike Farah
5950329e2c
Added docs on yes/no being strings in yaml spec 1.2
2023-05-23 15:35:39 +10:00
Mike Farah
5ef537f3fd
Bumping version
2023-05-23 13:27:28 +10:00
Mike Farah
f7fc4edce2
Preparing release notes
2023-05-23 13:26:50 +10:00
dependabot[bot]
af177f9605
Bump golang.org/x/net from 0.9.0 to 0.10.0 ( #1667 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/net/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-23 13:19:29 +10:00
Mike Farah
4d50b001d1
Added test for null array json example
2023-05-04 14:48:57 +10:00
Arthur Fritz Santiago
d14eaa9b49
fix: runtime error: invalid memory address or nil pointer dereference ( #1649 )
2023-05-04 14:43:48 +10:00
dependabot[bot]
91f47ff307
Bump golang from 1.20.3 to 1.20.4 ( #1658 )
...
Bumps golang from 1.20.3 to 1.20.4.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-04 14:28:55 +10:00
Giorgio Gallo
80b42b81fd
Implement shell output format ( #1645 )
...
* fix typo in a comment
* implement shell output format
* fix a typo
* add two test cases, have source uses ascii only
* add integration tests and documentation
* add fixes after code revieew
2023-05-04 11:06:56 +10:00
dependabot[bot]
bbe3055006
Bump golang.org/x/net from 0.8.0 to 0.9.0 ( #1638 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.8.0 to 0.9.0.
- [Release notes](https://github.com/golang/net/releases )
- [Commits](https://github.com/golang/net/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-14 08:58:32 +10:00
Mike Farah
d2f1ae9db7
Bumping version
2023-04-11 12:06:26 +10:00
Mike Farah
3aa4c83337
Release notes
2023-04-11 12:05:51 +10:00
Mike Farah
385921a3e2
Fixed passing of readonly context in pipe
2023-04-11 12:04:04 +10:00
dependabot[bot]
9d3c402923
Bump golang from 1.20.2 to 1.20.3 ( #1628 )
...
Bumps golang from 1.20.2 to 1.20.3.
---
updated-dependencies:
- dependency-name: golang
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 11:33:17 +10:00
dependabot[bot]
cb9076479c
Bump github.com/spf13/cobra from 1.6.1 to 1.7.0 ( #1629 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 11:32:58 +10:00
dependabot[bot]
a793468048
Bump github.com/goccy/go-yaml from 1.10.1 to 1.11.0 ( #1630 )
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.10.1...v1.11.0 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-11 11:32:36 +10:00
Akshath Kothari
f58b1e5263
Update README command for converting JSON to YAML ( #1627 )
...
Signed-off-by: ricekot <github@ricekot.com>
2023-04-05 14:56:36 +10:00
Mike Farah
eba075294a
Added scalar output for TOML ( #1617 )
2023-04-03 15:40:06 +10:00
Mike Farah
a389bb64b8
Fixed bug when splatting empty array #1613
2023-03-31 16:24:23 +11:00
Mike Farah
496035c75a
toml docs
2023-03-31 10:24:12 +11:00
Mike Farah
d00ffd9ce8
Updating release notes
2023-03-31 10:22:19 +11:00
Mike Farah
d5bbe5bea5
Bumping version
2023-03-31 10:21:59 +11:00
dependabot[bot]
6a52760415
Bump github.com/pelletier/go-toml/v2 from 2.0.6 to 2.0.7 ( #1623 )
...
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml ) from 2.0.6 to 2.0.7.
- [Release notes](https://github.com/pelletier/go-toml/releases )
- [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml )
- [Commits](https://github.com/pelletier/go-toml/compare/v2.0.6...v2.0.7 )
---
updated-dependencies:
- dependency-name: github.com/pelletier/go-toml/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 09:46:41 +11:00
dependabot[bot]
1fa8804107
Bump github.com/alecthomas/participle/v2 from 2.0.0-beta.5 to 2.0.0 ( #1624 )
...
Bumps [github.com/alecthomas/participle/v2](https://github.com/alecthomas/participle ) from 2.0.0-beta.5 to 2.0.0.
- [Release notes](https://github.com/alecthomas/participle/releases )
- [Changelog](https://github.com/alecthomas/participle/blob/master/CHANGES.md )
- [Commits](https://github.com/alecthomas/participle/compare/v2.0.0-beta.5...v2.0.0 )
---
updated-dependencies:
- dependency-name: github.com/alecthomas/participle/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 09:45:32 +11:00
dependabot[bot]
4cbede618e
Bump github.com/goccy/go-yaml from 1.10.0 to 1.10.1 ( #1625 )
...
Bumps [github.com/goccy/go-yaml](https://github.com/goccy/go-yaml ) from 1.10.0 to 1.10.1.
- [Release notes](https://github.com/goccy/go-yaml/releases )
- [Changelog](https://github.com/goccy/go-yaml/blob/master/CHANGELOG.md )
- [Commits](https://github.com/goccy/go-yaml/compare/v1.10.0...v1.10.1 )
---
updated-dependencies:
- dependency-name: github.com/goccy/go-yaml
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 09:15:12 +11:00