1 | <?php |
||
8 | class MergeUpstream extends Command |
||
9 | { |
||
10 | use ConfirmableTrait; |
||
11 | |||
12 | /** |
||
13 | * The name and signature of the console command. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $signature = 'support:merge-upstream |
||
18 | {branch=master : git branch of upstream} |
||
19 | {--remote=upstream : git remote name of upstream} |
||
20 | {--force : Force the operation to run}'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Merge upstream to the current branch'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return mixed |
||
33 | */ |
||
34 | public function handle() |
||
54 | |||
55 | /** |
||
56 | * Execute shell command and output the result. |
||
57 | * |
||
58 | * @param string $cmd |
||
59 | * @return void |
||
60 | */ |
||
61 | protected function executeShell($cmd) |
||
67 | } |
||
68 |