lokalise / lokalise-cli-2-go

Lokalise CLI v2
Other
108 stars 52 forks source link

`key list` gives me a redundant JSON object #160

Open stherold opened 2 weeks ago

stherold commented 2 weeks ago

Description

For some reason the following command:

lokalise2 --token "$LOKALISE_API_TOKEN" --project-id "$LOKALISE_PROJECT_ID" key list --filter-platforms ios --include-translations 1 --filter-translation-lang-ids "610,672,667,675,665,736,743,764,717,10168,10179,10180"

gives me a redundant JSON object at the end of the response which causes parsing trouble:

      "is_archived": false,
      "base_words": 3,
      "char_limit": 0,
      "modified_at": "2024-08-28 13:42:42 (Etc/UTC)",
      "modified_at_timestamp": 1724852562
    }
  ]
}
{
  "project_id": "384787975bd81c6599ccc3.30756087",
  "keys": []
}

My collegues do not have this issue for some reason.

Specs

Spec Value
lokalise2 version 3.0.1
Installation Method Homebrew (brew install lokalise/cli-2/lokalise2)
stherold commented 2 weeks ago

This is most likely related to https://github.com/lokalise/lokalise-cli-2-go/pull/138