How eremenko789/nexus_util works
Nexus Util is a CLI for managing assets and administration in Nexus OSS Raw Repository. The main workflow is a user invoking a command, which resolves connection settings from flags or YAML, then uses the Nexus client to perform a remote operation and report results. Asset commands cover upload, download, deletion, listing, and comparison; sync transfers between two Nexus instances. Separate branches initialize configuration and manage repositories and blob stores. The excerpts show client calls for push, pull, sync, and blob/repository administration; other asset-command links reflect README capabilities, not inspected implementations.
Main entry points: nexus.go Nexus operations · asset.go Asset command · config.go Config loading · main.go Command entry
Components 18
CLI commands
- Command entry
main.go - Asset command
cmd/asset/asset.go
Asset workflows
- Push assets
cmd/asset/push.go - Pull assets
cmd/asset/pull.go - Delete assets
cmd/asset/delete.go - List assets
cmd/asset/list.go - Compare assets
cmd/asset/diff.go - Sync repositories
cmd/sync/sync.go
Nexus administration
- List repositories
cmd/repo/repo.go - Create blob store
cmd/blob/create.go - List blob stores
cmd/blob/list.go - Show blob store
cmd/blob/show.go
Configuration
- Initialize config
cmd/init/init.go - Config loading
config/config.go
Nexus client
- Nexus operations
nexus/nexus.go
Other components
- CLI user
- Nexus OSS
- Local files
Connections 30
- CLI user → Command entry: runs commands
main.go - Command entry → Asset command: registers
main.go - Command entry → Initialize config: registers
main.go - Command entry → List repositories: registers
main.go - Command entry → Sync repositories: registers
main.go - Asset command → Push assets: offers
- Asset command → Pull assets: offers
- Asset command → Delete assets: offers
- Asset command → List assets: offers
- Asset command → Compare assets: offers
- Initialize config → Config loading: saves settings
cmd/init/init.go - Push assets → Config loading: loads settings
cmd/asset/push.go - Pull assets → Config loading: loads settings
cmd/asset/pull.go - Push assets → Nexus operations: uploads
cmd/asset/push.go - Pull assets → Nexus operations: downloads
cmd/asset/pull.go - Sync repositories → Config loading: loads settings
cmd/sync/sync.go - Sync repositories → Nexus operations: transfers via
cmd/sync/sync.go - List repositories → Config loading: loads settings
cmd/repo/repo.go - List repositories → Nexus operations: lists repositories
cmd/repo/repo.go - Create blob store → Config loading: loads settings
cmd/blob/create.go - Create blob store → Nexus operations: creates store
cmd/blob/create.go - List blob stores → Config loading: loads settings
cmd/blob/list.go - List blob stores → Nexus operations: lists stores
cmd/blob/list.go - Nexus operations → Nexus OSS: uses REST API
README.md - Local files → Push assets: provides uploads
README.md - Pull assets → Local files: writes downloads
README.md - Compare assets → Nexus operations: compares repository
- Delete assets → Nexus operations: deletes assets
- List assets → Nexus operations: lists assets
- Show blob store → Nexus operations: shows store