Skip to content

Commit

Permalink
Detect version automatically (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloKowalczyk authored May 21, 2022
1 parent 1cfe396 commit 23a94f0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion bin/nvfc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env php
<?php

use Composer\InstalledVersions;
use NvFanController\UserInterface\WatchCommand;
use Symfony\Component\Console\Application;

Expand Down Expand Up @@ -46,6 +47,9 @@ if (false === $autoloadFileFound) {
throw new RuntimeException($message);
}

$application = new Application('NVidia Fan Controller', 'v0.2.0');
$application = new Application(
'NVidia Fan Controller',
InstalledVersions::getPrettyVersion('pablok/nvfc'),
);
$application->add(new WatchCommand());
$application->run();
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"require": {
"php": "^8.1",
"ext-pcntl": "*",
"composer-runtime-api": "^2.0",
"react/child-process": "^0.6.1",
"react/event-loop": "^1.1",
"react/promise": "^2.7",
Expand Down
5 changes: 3 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 23a94f0

Please sign in to comment.