1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-08 03:31:59 +02:00
Commit Graph

4 Commits

Author SHA1 Message Date
Patrick Hahn
e5a9e18050
feat(schema): add command that generates jsonschema (#2589)
* feat(schema): Add command that generates the jsonschema for .goreleaser.yml files

This commit adds the jsonschema/schema subcommand that generates a jsonschema doc based on the Project go struct.
For the config types that alternatively allow you to specify a string via custom UnmarshalYAML function, this commit adds the JSONSchemaType function, so the type gets documented with an oneOf with string or itself.
Add yaml key names for properties that are currently missing them, so alecthomas/jsonschema generates the keys with correct casing.

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: Add linguist-generated attribute to generated schema json to exclude this file from pull request size validation

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* fix: run gofumpt

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>

* chore(schema): update alecthomas/jsonschema and regenerate schema.json

Signed-off-by: Patrick Hahn <patricksilashahn@gmx.net>
2021-10-26 15:02:03 -03:00
Carlos A Becker
cef6f13982
docs: fix cmd/docs
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 19:27:03 +00:00
Carlos Alexandro Becker
b43a2e95ec
chore(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.0 (#2328)
* feat: upgrade cobra

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* feat: upgrade cobra

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: docs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* chore: less diffs

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
2021-07-03 14:04:19 -03:00
Carlos Alexandro Becker
29cb60330b
docs: add cmd docs (#2184)
* docs: add cmd docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: cmd docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: num cpus

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* docs: improve some things

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: improve docs

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

* fix: script

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-04-22 10:45:36 -03:00