gitlab-tree-clone

module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Unlicense

README

GitLab Tree Clone (gltc)

A tool for recursively cloning a GitLab group tree of repositories.

Highlights

  • it's fast - each group and repo gets processed concurrently in its own goroutine
  • supports ignoring groups based on either their names or GitLab IDs

Installation

make install

Usage

Usage: gltc [--ignore-id IGNORE-ID] [--ignore-name IGNORE-NAME] [--output-dir OUTPUT_DIR] --token TOKEN [GROUP_ID]

Positional arguments:
  GROUP_ID               ID of the GitLab group to use as tree root

Options:
  --ignore-id IGNORE-ID
                         If specified, subgroups with this ID will not be cloned. May be given multiple times
  --ignore-name IGNORE-NAME
                         If specified, subgroups with this name will not be cloned. May be given multiple times
  --output-dir OUTPUT_DIR, -o OUTPUT_DIR
                         target dir for cloning the group tree [default: .]
  --token TOKEN, -t TOKEN
                         GitLab API access token
  --help, -h             display this help and exit
Examples

gltc --token {API_TOKEN} --ignore-name archived {GROUP_ID}

TODO

  • option/command to enable recursively pulling from existing git repos
  • cross-compilation in Makefile
  • tests :)

Directories

Path Synopsis
internal
app

Jump to

Keyboard shortcuts

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