phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

Inconsistencies in CLI Commands and Arguments #127

Closed horstmannmat closed 1 month ago

horstmannmat commented 11 months ago

Description

There are several inconsistencies in the CLI commands and their corresponding arguments in the provided documentation. These inconsistencies have led me to confusion and errors when attempting to use the CLI tool.

This issue aims to address these inconsistencies and potentially others that might exist and to offer my assistance either by contributing to the documentation or by helping with the necessary code changes.

Affected Commands and Arguments

Command: gitlab_syncs (Documentation Link)

phrase gitlab_syncs show --id $GITLAB_SYNC_ID  --account_id $PHRASE_ACCOUNT_ID
Error: unknown command "gitlab_syncs" for "phrase"

Did you mean this?
        git_lab_sync

--account_id Argument

Commands: import and history

theSoenke commented 8 months ago

Hi @horstmannmat, thanks for raising this. These are really good points. We also have some plans to align these commands and make it more consistent and usable. As a first step I'll fix the documentation for the command

theSoenke commented 1 month ago

Hi @horstmannmat, we've now released the new repo syncs endpoint to manage all Git Syncs: https://developers.phrase.com/api/#get-/accounts/-account_id-/repo_syncs For all those commands the params should be --account_id and --id