Skip to content

Commit ebcc7fb

Browse files
committed
Created composer adapter
1 parent 2a8efcb commit ebcc7fb

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

bin/composer-adapter/hsa

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
// unset first CLI argument
5+
unset($argv[0]);
6+
7+
$output = [];
8+
// Get arguments as string
9+
$args = implode(' ', $argv);
10+
11+
// execute binary
12+
exec("../hsa $args", $output);
13+
14+
// Print output line by line
15+
foreach ($output as $line) {
16+
echo $line . "\n";
17+
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"minimum-stability": "dev",
1212
"require": {},
1313
"bin": [
14-
"bin/hsa"
14+
"bin/composer-adapter/hsa"
1515
]
1616
}

0 commit comments

Comments
 (0)