Allow users to specify custom hostnames

This commit is contained in:
Marcel Pociot committed 2020-11-01 22:40:17 +01:00
1 parent 5b7a80bb0c
commit cec52c4229
28 files changed
+913 -63

No files matched your search

@@ -4,7 +4,7 @@ namespace App\Commands;
class ShareCurrentWorkingDirectoryCommand extends ShareCommand
{
protected $signature = 'share-cwd {host?} {--subdomain=} {--auth=}';
protected $signature = 'share-cwd {host?} {--hostname=} {--subdomain=} {--auth=}';
public function handle()
{
@@ -13,7 +13,7 @@ class ShareCurrentWorkingDirectoryCommand extends ShareCommand
$this->input->setArgument('host', $host);
if (! $this->option('subdomain')) {
if (! $this->option('subdomain') && ! $this->option('hostname')) {
$this->input->setOption('subdomain', $subdomain);
}