File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55use Illuminate \Console \Scheduling \Schedule ;
66use LaravelZero \Framework \Commands \Command ;
7+ use Hypernode \Api \HypernodeClientFactory ;
78
89class ListBrancherNodes extends Command
910{
@@ -12,7 +13,7 @@ class ListBrancherNodes extends Command
1213 *
1314 * @var string
1415 */
15- protected $ signature = 'brancher:list ' ;
16+ protected $ signature = 'brancher:list {hypernode} ' ;
1617
1718 /**
1819 * The description of the command.
@@ -28,7 +29,13 @@ class ListBrancherNodes extends Command
2829 */
2930 public function handle ()
3031 {
31- //
32+ $ client = HypernodeClientFactory::create (config ('hypernode.api_token ' ));
33+
34+ $ originHypernode = $ this ->argument ('hypernode ' );
35+
36+ $ client ->brancherApp ->list ($ originHypernode );
37+
38+ print_r ($ client ->brancherApp ->list ($ originHypernode ));
3239 }
3340
3441 /**
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ 'api_token ' => getenv ('HYPERNODE_API_TOKEN ' ),
5+ ];
You can’t perform that action at this time.
0 commit comments