gh-exporter

module
v0.0.0-...-ebdecc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2024 License: MIT

README

gh-exporter

CLI tool for exporting GitHub repositories based on GitHub repositories search query

Usage

  1. Explore repositories to be exported later
Usage:
  gh_exporter search [flags]

Flags:
  -h, --help           help for search
  -o, --out string     Search results file (default "~/git-py/results.csv")
  -q, --query string   GItHub repos search query (default "q=language:python")
  1. Create export plan. This command uses bin packing algorithm to group repositories for further optimized cloning
Usage:
  gh_exporter plan [flags]

Flags:
  -c, --capacity uint   Repository group capacity (default 2147483648)
  -h, --help            help for plan
  -i, --in string       Search results input for planning (default "~/git-py/results.csv")
  -o, --out string      Plan file path (default "~/git-py/plan.csv")
  1. Export planned repositories
Usage:
    gh_exporter export [flags]

Flags:
  -c, --concurrency int   Cloning concurrency (default 10)
  -f, --file string       Plan file path (default "~/git-py/plan.csv")
  -h, --help              help for export
  -i, --identity string   SSH key path (default "~/.ssh/id_rsa")
  -o, --out string        Output directory (default "~/git-py/repos/python")
  -p, --pattern string    Cloning file name pattern (default "*.py")
  -s, --search string     Search results file path to determine total (default "~/git-py/results.csv")

Directories

Path Synopsis
cmd
pkg
gh

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL