Categorygithub.com/gizzahub/gzh-manager-go
repositorypackage
0.0.0-20250125144251-d07f231796e7
Repository: https://github.com/gizzahub/gzh-manager-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

Gizzahub Manager

Comprehensive CLI Tool

Test Status Lint Status GoDoc Code Coverage Latest Release Docker Pulls Total Downloads

Table of Contents

Usage

기능

Clone repositories by GitHub account (user, org) or GitLab group.

  • bulk-clone
    • git
    • gitea
    • github
    • gitlab
    • gogs
  • gen-config

CLI

$> bulk-clone -h
golang-cli cli application by managing bulk-clone

Usage:
  gzh [flags]
  gzh [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  bulk-clone    Clone repositories in bulk
  help        Help about any command
  version     bulk-clone version

Flags:
  -h, --help   help for bulk-clone

Use "gzh-manager [command] --help" for more information about a command.

First, create a configuration file in the desired path. Refer to bulk-clone.yaml

$> gzh bulk-clone -t $HOME/mywork

This won't work:
$> gzh bulk-clone -t ./mywork
$> gzh bulk-clone -t $HOME/mywork
$> gzh bulk-clone -t ~/mywork

Bulk Clone config

# bulk-clone.yaml 
github:
  ScriptonBasestar:
   auth: token
   proto: https
   targetPath: $HOME/mywork/ScriptonBasestar
   default:
    strategy: include
    branch: develop
   include:
    proxynd:
      branch: develop
    devops-minim-engine:
      branch: dev
   exclude:
    - sb-wp-*
   override:
    include:
  nginxinc:
   targetPath: $HOME/mywork/nginxinc
gzh bulk-clone -o nginxinc
gzh bulk-clone -o nginxinc -t $HOME/mywork/nginxinc
gzh bulk-clone -o nginxinc -t $HOME/mywork/nginxinc --auth token

Trigger

와이파이 변경.. 등

Features

Project Layout

  • assets/ => docs, images, etc
  • cmd/ => command-line configurations (flags, subcommands)
  • pkg/ => packages that are okay to import for other projects
  • internal/ => packages that are only for project internal purposes

Makefile Targets

$> make
bootstrap                      install build deps
build                          build golang binary
clean                          clean up environment
cover                          display test coverage
docker-build                   dockerize golang application
fmt                            format go files
help                           list makefile targets
install                        install golang binary
lint                           lint go files
pre-commit                     run pre-commit hooks
run                            run the app
test                           display test coverage