Skip to content

Commit

Permalink
feat: [#459] Display how long N3DR was running. (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
030 authored Feb 10, 2024
1 parent a595c12 commit 89f1883
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version: '3'
env:
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download
GIT_CHGLOG_VERSION: v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz
CHANGELOG_NEXT_TAG: 7.4.1
CHANGELOG_NEXT_TAG: 7.5.0

tasks:
changelog:
Expand Down
2 changes: 1 addition & 1 deletion build/package/snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: n3dr
base: core22
version: 7.4.1
version: 7.5.0
summary: Nexus3 Disaster Recovery
description: |
Download all artifacts at once or migrate automatically from Nexus to Nexus.
Expand Down
5 changes: 5 additions & 0 deletions cmd/n3dr/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"os"
"path/filepath"
"time"

"github.com/030/logging/pkg/logging"
cli "github.com/030/n3dr/internal/app/n3dr/artifactsv2"
Expand Down Expand Up @@ -58,10 +59,14 @@ Nexus3 repository and restoring them.`,
}

func execute() {
now := time.Now()

if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}

log.Infof("n3dr was running for: '%s'", time.Since(now))
}

func init() {
Expand Down
19 changes: 17 additions & 2 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@
## [Unreleased]


<a name="7.5.0"></a>
## [7.5.0] - 2024-02-10
### Build
- **deps:** bump github.com/aws/aws-sdk-go from 1.50.10 to 1.50.14 ([#474](https://github.com/030/n3dr/issues/474))
- **deps:** bump schubergphilis/mcvs-golang-action from 0.2.3 to 0.3.0 ([#473](https://github.com/030/n3dr/issues/473))
- **deps:** bump golang from 1.21.6-alpine3.18 to 1.22.0-alpine3.18 ([#471](https://github.com/030/n3dr/issues/471))
- **deps:** bump github.com/aws/aws-sdk-go from 1.50.5 to 1.50.10 ([#464](https://github.com/030/n3dr/issues/464))
- **deps:** bump github.com/go-openapi/validate from 0.22.4 to 0.23.0 ([#465](https://github.com/030/n3dr/issues/465))
- **deps:** bump github.com/docker/docker from 20.10.24+incompatible to 20.10.27+incompatible ([#466](https://github.com/030/n3dr/issues/466))

### Feat
- [[#459](https://github.com/030/n3dr/issues/459)] Display how long N3DR was running.


<a name="7.4.1"></a>
## [7.4.1] - 2024-02-04
### Build
- Resolve 'GLIBC_2.34 not found in snapcraft' issue.
- [[#467](https://github.com/030/n3dr/issues/467)] Resolve 'GLIBC_2.34 not found in snapcraft' issue. ([#468](https://github.com/030/n3dr/issues/468))


<a name="7.4.0"></a>
Expand Down Expand Up @@ -460,7 +474,8 @@ The `backup`, `upload` and `repositories` commands have been removed.
<a name="1.0.0"></a>
## 1.0.0 - 2019-05-12

[Unreleased]: https://github.com/030/n3dr/compare/7.4.1...HEAD
[Unreleased]: https://github.com/030/n3dr/compare/7.5.0...HEAD
[7.5.0]: https://github.com/030/n3dr/compare/7.4.1...7.5.0
[7.4.1]: https://github.com/030/n3dr/compare/7.4.0...7.4.1
[7.4.0]: https://github.com/030/n3dr/compare/7.3.3...7.4.0
[7.3.3]: https://github.com/030/n3dr/compare/7.3.2...7.3.3
Expand Down
6 changes: 3 additions & 3 deletions docs/quickstarts/snippets/n3dr/DOWNLOAD.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Download

Download the [latest N3DR binary](https://github.com/030/n3dr/releases/tag/7.4.1):
Download the [latest N3DR binary](https://github.com/030/n3dr/releases/tag/7.5.0):

```bash
cd /tmp && \
curl -L https://github.com/030/n3dr/releases/download/7.4.1/n3dr-ubuntu-latest \
curl -L https://github.com/030/n3dr/releases/download/7.5.0/n3dr-ubuntu-latest \
-o n3dr-ubuntu-latest && \
curl -L https://github.com/030/n3dr/releases/download/7.4.1/\
curl -L https://github.com/030/n3dr/releases/download/7.5.0/\
n3dr-ubuntu-latest.sha512.txt \
-o n3dr-ubuntu-latest.sha512.txt && \
sha512sum -c n3dr-ubuntu-latest.sha512.txt && \
Expand Down
2 changes: 0 additions & 2 deletions internal/app/n3dr/artifactsv2/count/artifacts_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package count

import (
Expand Down
2 changes: 0 additions & 2 deletions internal/app/n3dr/artifactsv2/upload/upload_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package upload

import (
Expand Down
2 changes: 0 additions & 2 deletions internal/app/n3dr/config/repository/repository_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package repository

import (
Expand Down
2 changes: 0 additions & 2 deletions internal/app/n3dr/config/security/anonymous_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build !integration

package security

import (
Expand Down

0 comments on commit 89f1883

Please sign in to comment.