ittybittyapps / appstoreconnect-cli

An easy to use command-line tool for interacting with the Apple AppStore Connect API
MIT License
172 stars 17 forks source link

List, read, create, delete, update Beta Build Localizations #223

Closed DechengMa closed 3 years ago

DechengMa commented 3 years ago

Closes #222

Changes proposed in this pull request:

๐Ÿง๐Ÿ—’ Reviewer Notes

๐Ÿ’ Example

USAGE: asc testflight builds localization

SUBCOMMANDS:
  create                  Create localized Whatโ€™s New text for a build.
  delete                  Delete a specific beta build localization associated with a build.
  list                    Find and list beta build localization resources.
  read                    Get a specific beta build localization resource.
  update                  Update the localized Whatโ€™s New text for a specific beta build and locale.
Create
USAGE: asc testflight builds localization create <bundle-id> <pre-release-version> <build-number> <locale> [--whats-new <whats-new>] [--path <path>]
Update
USAGE: asc testflight builds localization create <bundle-id> <pre-release-version> <build-number> <locale> [--whats-new <whats-new>] [--path <path>]
Delete
USAGE: asc testflight builds localization delete <bundle-id> <pre-release-version> <build-number> <locale>
List
USAGE: asc testflight builds localization list <bundle-id> <pre-release-version> <build-number> [--limit <limit>]
Read
USAGE: asc testflight builds localization read [--api-issuer <uuid>] [--api-key-id <keyid>] [--csv] [--json] [--table] [--yaml] <bundle-id> <pre-release-version> <build-number> <locale>

๐Ÿ”จ How To Test

[--whats-new <whats-new>] must be wrapped inside a ' '

List
swift run asc testflight builds localization update com.example.foo 1.0.9 5
Read
swift run asc testflight builds localization update com.example.foo 1.0.9 5 en-AU 
Delete
swift run asc testflight builds localization update com.example.foo 1.0.9 5 en-AU 
Create
swift run asc testflight builds localization update com.example.foo 1.0.9 5 en-AU --json --path ../whatsNew.text
Update
swift run asc testflight builds localization update com.example.foo 1.0.9 5 en-AU --json --whats-new `Hello There`