New --version-machine CLI command

This commit is contained in:
Nav
2022-05-06 19:30:43 +01:00
parent 52c9669d14
commit 7776ba88c3
3 changed files with 30 additions and 3 deletions

View File

@@ -156,6 +156,10 @@ namespace Bloom
"-v",
std::bind(&Application::presentVersionText, this)
},
{
"--version-machine",
std::bind(&Application::presentVersionMachineText, this)
},
{
"init",
std::bind(&Application::initProject, this)
@@ -210,6 +214,13 @@ namespace Bloom
*/
int presentVersionText();
/**
* Presents the current Bloom version number, in JSON format.
*
* @return
*/
int presentVersionMachineText();
/**
* Initialises a project in the user's working directory.
*