replicatedhq / replicated

A CLI to create, edit and promote releases in Replicated
https://vendor.replicated.com
MIT License
34 stars 23 forks source link

Don't send error to stdout #406

Closed divolgin closed 2 months ago

divolgin commented 2 months ago

No warning with 1 channel

$ ./bin/replicated customer create --name Geeglo --email zz2m8vguvo5n@geeglo.io --channel Stable --expires-in 720h --kots-install=false --output json --app app-create-test|jq
Update available: v0.79.0
To automatically upgrade, run "replicated version upgrade"
{
  "id": "2kFaTZIyRm1mMieen35Gqcq46WO",
  "customId": "",
  "name": "Geeglo",
  "email": "zz2m8vguvo5n@geeglo.io",
  "channels": [
    {
      "id": "2YEfvli3H2BGqb2UvIZyw3JvHrL",
      "name": "Stable",
      "description": "",
      "channelSlug": "stable",
      "releaseSequence": 0,
      "releaseLabel": "",
      "isArchived": false,
      "isHelmOnly": false
    }
  ],
  "type": "dev",
  ...

Warning with 2 channels, and jq still works

$ ./bin/replicated customer create --name Geeglo --email zz2m8vguvo5n@geeglo.io --channel Stable --channel Unstable --expires-in 720h --kots-install=false --output json --app app-create-test|jq
Update available: v0.79.0
To automatically upgrade, run "replicated version upgrade"
No default channel specified, defaulting to the first channel specified.
{
  "id": "2kFaZqvDWk9asrKEHmprDJw1dAb",
  "customId": "",
  "name": "Geeglo",
  "email": "zz2m8vguvo5n@geeglo.io",
  "channels": [
    {
      "id": "2YEfvhh92G5AAnSmLaYeAacrSAB",
      "name": "Unstable",
      "description": "",
      "channelSlug": "unstable",
      "releaseSequence": 0,
      "releaseLabel": "",
      "isArchived": false,
      "isHelmOnly": false
    },
    {
      "id": "2YEfvli3H2BGqb2UvIZyw3JvHrL",
      "name": "Stable",
      "description": "",
      "channelSlug": "stable",
      "releaseSequence": 0,
      "releaseLabel": "",
      "isArchived": false,
      "isHelmOnly": false
    }
  ],
...