Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support table generation #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

n3wscott
Copy link
Member

This is a work in progress to produce a supported features table from yaml config via a cli.

The work to be done is to add more support for URLs to link back to specs and features at versions. See cloudevents/spec#1048 for the history.


The config template looks like this:

(╯°□°)╯︵  go run ./cmd/features template LANG
language: LANG
versions:
  v1.0:
    core: false
    formats:
      avro: false
      amqp: false
      json: false
      protobuf: false
    bindings:
      amqp:
        binary: false
        structured: false
      http:
        binary: false
        structured: false
        batch: false
      kafka:
        binary: false
        structured: false
      mqtt:
        binary: false
        structured: false
      nats:
        binary: false
        structured: false
      web-sockets:
        binary: false
        structured: false

And the table is rendered as such:

(╯°□°)╯︵  go run ./cmd/features render ./cmd/features/testdata/foo.yaml ./cmd/features/testdata/bar.yaml ./cmd/features/testdata/baz.yaml
Feature Foo Bar Baz
v1.0
CloudEvents Core ✔️ ✔️
Avro Event Format ✔️ ✔️
AMQP Event Format ✔️ ✔️
JSON Event Format ✔️ ✔️
Protobuf Event Format ✔️ ✔️
AMQP Binary ✔️ ✔️
Structured ✔️ ✔️
HTTP Binary ✔️ ✔️
Structured ✔️ ✔️
Batch ✔️ ✔️
Kafka Binary ✔️ ✔️
Structured ✔️ ✔️
MQTT Binary ✔️ ✔️
Structured ✔️ ✔️
NATS Binary ✔️ ✔️
Structured ✔️ ✔️
Web Sockets Binary ✔️ ✔️
Structured ✔️ ✔️
v0.3
CloudEvents Core ✔️
Avro Event Format ✔️
AMQP Event Format ✔️
JSON Event Format ✔️
Protobuf Event Format ✔️
AMQP Binary ✔️
Structured ✔️
HTTP Binary ✔️
Structured ✔️
Batch ✔️
Kafka Binary ✔️
Structured ✔️
MQTT Binary ✔️
Structured ✔️
NATS Binary ✔️
Structured ✔️
Web Sockets Binary ✔️
Structured ✔️

@n3wscott
Copy link
Member Author

I am hoping someone can fork this and continue the work if there is interest. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant