Comments (6)
@aparajita This feature is now released and is available in version 0.45.0. More details can be seen from the description of PR #349. Example usages can be seen from this screenshot:
from cli-tools.
Hi @aparajita. As integers are valid JSON data types, then this is actually intended behaviour. Consider the following example:
$ VERSION=$(app-store-connect get-latest-testflight-build-number 1550275619 | jq)
Found build number 10 from TestFlight version 1.0.2
$ echo $VERSION
10
Note informative log lines are written to STDERR stream (by default) and are not captured by piping or variable initialization unless stream redirection is used.
All in all, in case of integer versions there is no difference in JSON and regular output.
from cli-tools.
Actually, on a second thought, there seems to be a bug indeed. As version
attribute of PreReleaseVersion
and versionString
attribute of AppStoreVersion
are both strings, then using --json
flag should wrap the version in quotes. And in case the build number is not a number, which is completely valid case, then this cannot be piped to JSON parser, say jq
, at all as of now:
$ app-store-connect get-latest-testflight-build-number 1481211155 | jq
Found build number 2.0.335.528 from TestFlight version 2.0.335
parse error: Invalid numeric literal at line 2, column 0
from cli-tools.
Found build number 10 from TestFlight version 1.0.2
Since the tool obviously figures out the version, I was hoping (and kind of expecting) the json output would be like this:
{
"version": "1.0.2",
"build": "10"
}
Unless I'm missing something, otherwise to get the corresponding app version we have to explicitly go through the several steps you go through internally to get it.
Would it be possible to add an --include-version
option (or something like that) to return the JSON outlined above?
from cli-tools.
Since altering the default behaviour of what --json
does would be breaking for existing users, we cannot always include the version info in the output. However, I don't see a reason why this specific action and other similar ones (get-latest-build-number
and get-latest-app-store-build-number
) couldn't output both version and build number as proposed when additional flag is passed.
from cli-tools.
Since altering the default behaviour of what
--json
does would be breaking for existing users
That's why I proposed a new flag. 😁
from cli-tools.
Related Issues (20)
- Action get-latest-testflight-build-number returns number of expired build number instead of normal build number HOT 4
- Did not find matching provisioning profiles for code signing! HOT 2
- `list-bundle-ids` says that a Bundle ID is only iOS but should be universal HOT 3
- Getting the latest build number across ALL versions HOT 3
- Firebase app distribution get latest build version is not working HOT 1
- firebase-app-distribution's Project ID to Project Number HOT 2
- Swift package plugin can't find underlying command HOT 7
- Add support for publishing macOS versions to TestFlight
- Add all environmental variables to .env file HOT 1
- Sometimes getting the following error when publishing macOS to TestFlight `422: The build is not in a valid processing state for this operation. - The build is not in a valid processing state for this operation.`` HOT 13
- Make retries for finding build customizable HOT 2
- Add option for phased released when publishing iOS or macOS HOT 6
- TypeError when auto-promoting Google Play channel with release notes HOT 3
- Remove usage of distutils, no support for Python 3.12+ HOT 3
- Use `packaging` package instead of deprecated `distutils.version` to fix GitHub macOS 13 runner. HOT 2
- Be able to set both tags triggers at the same time as branch filtering HOT 2
- Adding profile entitlements dynamically HOT 3
- `use-profiles` against MacOS app has suddenly started assigning iOS Provisioning Profiles HOT 4
- Store review status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli-tools.