Get variables from dub.json
dog2002
742617000027 at aaathats3as.com
Wed Mar 3 15:46:12 UTC 2021
On Wednesday, 3 March 2021 at 15:05:16 UTC, Andre Pany wrote:
> On Wednesday, 3 March 2021 at 12:50:16 UTC, dog2002 wrote:
>> How do I use variables (application version for example) from
>> dub.json? Is it possible? For example, I want the application
>> version to be printed.
>
> You can use command `dub describe` to get all information for a
> dub project. It has some arguments to filter for specific
> information and on linux you can of course use jq to filter out
> any information from the json produced by `dub describe`.
>
> Kind regards
> Andre
Thank you for your answer, but I want to put the application
version in variable in the application code automatically during
compiling process.
More information about the Digitalmars-d
mailing list