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

feat: Add structured output of products and their versions in bake.py #45

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

lfrancke
Copy link
Member

As it says on the tin.
This prints a JSON structure of the current products and their versions.

The output will look like this:

venv-test) on ☁  lars.francke@stackable.tech
❯ bake --show-products
{
  "airflow": [
    "2.9.2",
    "2.9.3",
    "2.10.2"
  ],
  "druid": [
    "26.0.0",
    "30.0.0"
  ],
  "hadoop": [
    "3.3.4",
    "3.3.6",
    "3.4.0"
  ],
  "hbase": [
    "2.4.18",
    "2.6.0"
  ],
  "hello-world": [
    "0.0.1-SNAPSHOT"
  ],
  "hive": [
    "4.0.0",
    "3.1.3"
  ],
  "java-base": [
    "8",
    "11",
    "17",
    "21",
    "22"
  ],
  "java-devel": [
    "8",
    "11",
    "17",
    "21",
    "22"
  ],
  "kafka": [
    "3.7.1",
    "3.8.0"
  ],
  "krb5": [
    "1.21.1"
  ],
  "vector": [
    "0.41.1"
  ],
  "nifi": [
    "1.27.0",
    "2.0.0"
  ],
  "omid": [
    "1.1.2"
  ],
  "opa": [
    "0.66.0",
    "0.67.1"
  ],
  "spark-k8s": [
    "3.5.1",
    "3.5.2"
  ],
  "stackable-base": [
    "1.0.0"
  ],
  "superset": [
    "4.0.2"
  ],
  "trino-cli": [
    "455"
  ],
  "trino": [
    "451",
    "455"
  ],
  "kafka-testing-tools": [
    "1.0.0"
  ],
  "kcat": [
    "1.7.0"
  ],
  "testing-tools": [
    "0.2.0"
  ],
  "zookeeper": [
    "3.9.2"
  ],
  "tools": [
    "1.0.0"
  ],
  "statsd_exporter": [
    "0.27.1"
  ]
}

@lfrancke lfrancke self-assigned this Nov 19, 2024
@lfrancke
Copy link
Member Author

Thanks for assigning @siegfriedweber - this PR is not urgent.

Copy link
Member

@razvan razvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's worth a changelog entry. Otherwise nice.

@lfrancke
Copy link
Member Author

lfrancke commented Nov 19, 2024

This is in preparation for a Nushell completion script so I can just do --product hb<tab> to get --product hbase and then another <tab> to get the versions.

I can add a changelog entry.

@lfrancke lfrancke requested a review from razvan November 19, 2024 13:34
Copy link
Member

@razvan razvan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lfrancke lfrancke added this pull request to the merge queue Nov 19, 2024
Merged via the queue into main with commit 1bd21bc Nov 19, 2024
4 checks passed
@lfrancke lfrancke deleted the push-zmmlopkmumxq branch November 19, 2024 13:57
@siegfriedweber siegfriedweber removed their request for review November 19, 2024 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants