public function getCLIArguments()

in src/shipit/phase/ShipItGitHubInitPhase.php [35:84]


  public function getCLIArguments(): vec<ShipItCLIArgument> {
    return vec[
      shape(
        'long_name' => 'skip-'.$this->side.'-init',
        'description' => "Don't initialize the GitHub checkout",
        'write' => $_ ==> $this->skip(),
      ),
      shape(
        'long_name' => $this->side.'-github-org::',
        'description' => 'GitHub Organization ['.$this->organization.']',
        'write' => $v ==> {
          $this->organization = $v;
          return $this->organization;
        },
      ),
      shape(
        'long_name' => $this->side.'-github-project::',
        'description' => 'GitHub Project ['.$this->project.']',
        'write' => $v ==> {
          $this->project = $v;
          return $this->project;
        },
      ),
      shape(
        'long_name' => $this->side.'-use-ssh',
        'description' => 'Use ssh to talk to GitHub',
        'write' => $_ ==> {
          $this->transport = ShipItTransport::SSH;
          return $this->transport;
        },
      ),
      shape(
        'long_name' => $this->side.'-use-authenticated-https',
        'description' => 'Use HTTPS to talk to GitHub',
        'write' => $_ ==> {
          $this->transport = ShipItTransport::HTTPS;
          return $this->transport;
        },
      ),
      shape(
        'long_name' => $this->side.'-use-anonymous-https',
        'description' => 'Talk to GitHub anonymously over HTTPS',
        'write' => $_ ==> {
          $this->transport = ShipItTransport::HTTPS;
          $this->anonymousHttps = true;
          return true;
        },
      ),
    ];
  }