nativescript-cli icon indicating copy to clipboard operation
nativescript-cli copied to clipboard

command to get app infos

Open farfromrefug opened this issue 4 years ago • 0 comments

I know there is a ns config command to read project config. However it is not enough .

what s needed:

  • command to get app id. This could be done with ns config but i cant find a way to read only the id key ?
  • command to read build version and build number for iOS/Android. This is very important for plugins like sentry.

Right now i have some kind of a working implementation here https://github.com/farfromrefug/nativescript-set-version/blob/master/lib/get_version.js#L11. However it would be much more suited inside the cli. For instance getting the location of info.plist and app.gradle is very ugly in my plugin while it is already implemented and elegant in the cli.

farfromrefug avatar Aug 02 '21 15:08 farfromrefug