public function getCLIArguments()

in src/shipit/phase/ShipItVerifyRepoPhase.php [40:84]


  public function getCLIArguments(): vec<ShipItCLIArgument> {
    return vec[
      shape(
        'long_name' => 'verify',
        'description' =>
          'Verify that the destination repository is in sync, then exit',
        'write' => $_ ==> $this->unskip(),
      ),
      shape(
        'long_name' => 'create-fixup-patch',
        'description' =>
          'Create a patch to get the destination repository in sync, then exit',
        'write' => $_ ==> {
          $this->unskip();
          $this->createPatch = true;
          return true;
        },
      ),
      shape(
        'long_name' => 'verify-source-commit::',
        'description' => 'Hash of first commit that needs to be synced',
        'write' => $x ==> {
          $this->verifySourceCommit = $x;
          return $this->verifySourceCommit;
        },
      ),
      shape(
        'long_name' => 'use-latest-source-commit',
        'description' =>
          'Find the latest synced source commit to use as a base for verify',
        'write' => $_ ==> {
          $this->useLatestSourceCommit = true;
          return $this->useLatestSourceCommit;
        },
      ),
      shape(
        'long_name' => 'skip-submodules',
        'description' => 'Don\'t sync submodules',
        'write' => $_ ==> {
          $this->shouldDoSubmodules = false;
          return $this->shouldDoSubmodules;
        },
      ),
    ];
  }