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

Add --output flag to various commands #349

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

divolgin
Copy link
Member

@divolgin divolgin commented Dec 19, 2023

Added for various commands with some exceptions:

  • commands that don't support KOTS
  • customer license download

There were two existing commands that expected "text" instead of "table". They now support both, but only "table" will be documented"

$ ./bin/replicated channel ls --output json
Update available: v0.60.0
To automatically upgrade, run "replicated version upgrade"
[
  {
    "id": "2ULZUQp3A9bH79uS3rwSaGArWig",
    "name": "Stable",
    "description": "",
    "channelSlug": "stable",
    "releaseSequence": 0,
    "releaseLabel": "",
    "isArchived": false,
    "isHelmOnly": false
  },
  {
    "id": "2ULZUSyJypjZLc6xkBZfReDMqPz",
    "name": "Beta",
    "description": "",
    "channelSlug": "beta",
    "releaseSequence": 47,
    "releaseLabel": "1.0.16",
    "isArchived": false,
    "isHelmOnly": true
  },
  {
    "id": "2ULZURFgOKVpjtpWG4xJUBKL8Rc",
    "name": "Unstable",
    "description": "",
    "channelSlug": "unstable",
    "releaseSequence": 50,
    "releaseLabel": "0.0.4",
    "isArchived": false,
    "isHelmOnly": false
  }
]
$ ./bin/replicated app ls --output json
Update available: v0.60.0
To automatically upgrade, run "replicated version upgrade"
[
  {
    "app": {
      "id": "28ysVLZT3OiZLXuOVW3ZUDXRu9D",
      "name": "okteto-kots",
      "scheduler": "kots",
      "slug": "okteto-kots",
      "isFoundation": false
    },
    "channels": [
      {
        "id": "28ysVXknIJUl9ncG4xVRHgw5tUt",
        "name": "Stable",
        "description": "",
        "channelSlug": "stable",
        "releaseSequence": 170,
        "releaseLabel": "",
        "isArchived": false,
        "isHelmOnly": true
      },
...
$ ./bin/replicated release lint --yaml-dir ./yaml-kots --output json
Update available: v0.60.0
To automatically upgrade, run "replicated version upgrade"
[
  {
    "rule": "helm-chart-missing",
    "type": "error",
    "path": "",
    "message": "Could not find helm chart manifest for archive 'yaml-kots/postgresql-11.9.2.tgz'",
    "positions": null
  }
]
Error: One or more errors of severity "error" or higher were found

@divolgin divolgin merged commit 5468ca6 into main Dec 19, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants