gatelineAPI reference
  • gateline repo add (§7.1): resolve path to the repository's top, run the framework check (§7.2), derive the id (§6), refuse an id or display name already in the list (compared without case, as §6.2 has it), and append the entry — keeping the file's comments and the order of what is there.

    Parameters

    • opts: {
          configPath?: string;
          cwd?: string;
          gatelinePrefix?: string;
          mode: string;
          name?: string;
          path: string;
      }

    Returns Promise<AddedRepository>