import { cmd } from "./cmd"
import { GithubInstallCommand } from "./github-install"
import { GithubRunCommand } from "./github-run"

export { parseGitHubRemote, extractResponseText, formatPromptTooLargeError } from "./github-util"
export { GithubInstallCommand, GithubRunCommand }

export const GithubCommand = cmd({
  command: "github",
  describe: "manage GitHub agent",
  builder: (yargs) => yargs.command(GithubInstallCommand).command(GithubRunCommand).demandCommand(),
  async handler() {},
})
