nexus-migrator

command module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 1 Imported by: 0

README

nexus-migrator

The application can be used to download and upload raw Nexus repositories.

Configuration

By default, the application searches for the configuration file in the same directory. The file should be called nexus.conf:

{
    "nexus": "https://nexus.intware.eu",
    "user": "api",
    "pass": "api",
    "timeout": "120s",
    "level": "info"
}

If nexus.conf isn't found, the application will read environment variables:

NEXUS="https://nexus.intware.eu"
USER="api"
PASS="api"
TIMEOUT="120s"

Possible configuration properties:

Property Description
nexus Url to Nexus repository
user API username
Password API password
timeout HTTP timeout
level Log level: trace, debug, info, warn, error, fatal, panic, disabled

How to use it

Download repository

To download the remote Nexus raw repository to a local directory:

./nexus-migrator download -s software -t /tmp
Upload repository

Upload a local directory to the Nexus raw repository:

./nexus-migrator upload -s /tmp -t software
Show help
./nexus-migrator --help

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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