Skip to content

Commit 89f1883

Browse files
authored
feat: [#459] Display how long N3DR was running. (#475)
1 parent a595c12 commit 89f1883

File tree

9 files changed

+27
-15
lines changed

9 files changed

+27
-15
lines changed

Taskfile.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: '3'
44
env:
55
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download
66
GIT_CHGLOG_VERSION: v0.15.1/git-chglog_0.15.1_linux_amd64.tar.gz
7-
CHANGELOG_NEXT_TAG: 7.4.1
7+
CHANGELOG_NEXT_TAG: 7.5.0
88

99
tasks:
1010
changelog:

build/package/snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: n3dr
33
base: core22
4-
version: 7.4.1
4+
version: 7.5.0
55
summary: Nexus3 Disaster Recovery
66
description: |
77
Download all artifacts at once or migrate automatically from Nexus to Nexus.

cmd/n3dr/root.go

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http"
99
"os"
1010
"path/filepath"
11+
"time"
1112

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

6061
func execute() {
62+
now := time.Now()
63+
6164
if err := rootCmd.Execute(); err != nil {
6265
fmt.Println(err)
6366
os.Exit(1)
6467
}
68+
69+
log.Infof("n3dr was running for: '%s'", time.Since(now))
6570
}
6671

6772
func init() {

docs/CHANGELOG.md

+17-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,24 @@
22
## [Unreleased]
33

44

5+
<a name="7.5.0"></a>
6+
## [7.5.0] - 2024-02-10
7+
### Build
8+
- **deps:** bump github.com/aws/aws-sdk-go from 1.50.10 to 1.50.14 ([#474](https://github.com/030/n3dr/issues/474))
9+
- **deps:** bump schubergphilis/mcvs-golang-action from 0.2.3 to 0.3.0 ([#473](https://github.com/030/n3dr/issues/473))
10+
- **deps:** bump golang from 1.21.6-alpine3.18 to 1.22.0-alpine3.18 ([#471](https://github.com/030/n3dr/issues/471))
11+
- **deps:** bump github.com/aws/aws-sdk-go from 1.50.5 to 1.50.10 ([#464](https://github.com/030/n3dr/issues/464))
12+
- **deps:** bump github.com/go-openapi/validate from 0.22.4 to 0.23.0 ([#465](https://github.com/030/n3dr/issues/465))
13+
- **deps:** bump github.com/docker/docker from 20.10.24+incompatible to 20.10.27+incompatible ([#466](https://github.com/030/n3dr/issues/466))
14+
15+
### Feat
16+
- [[#459](https://github.com/030/n3dr/issues/459)] Display how long N3DR was running.
17+
18+
519
<a name="7.4.1"></a>
620
## [7.4.1] - 2024-02-04
721
### Build
8-
- Resolve 'GLIBC_2.34 not found in snapcraft' issue.
22+
- [[#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))
923

1024

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

463-
[Unreleased]: https://github.com/030/n3dr/compare/7.4.1...HEAD
477+
[Unreleased]: https://github.com/030/n3dr/compare/7.5.0...HEAD
478+
[7.5.0]: https://github.com/030/n3dr/compare/7.4.1...7.5.0
464479
[7.4.1]: https://github.com/030/n3dr/compare/7.4.0...7.4.1
465480
[7.4.0]: https://github.com/030/n3dr/compare/7.3.3...7.4.0
466481
[7.3.3]: https://github.com/030/n3dr/compare/7.3.2...7.3.3

docs/quickstarts/snippets/n3dr/DOWNLOAD.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Download
22

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

55
```bash
66
cd /tmp && \
7-
curl -L https://github.com/030/n3dr/releases/download/7.4.1/n3dr-ubuntu-latest \
7+
curl -L https://github.com/030/n3dr/releases/download/7.5.0/n3dr-ubuntu-latest \
88
-o n3dr-ubuntu-latest && \
9-
curl -L https://github.com/030/n3dr/releases/download/7.4.1/\
9+
curl -L https://github.com/030/n3dr/releases/download/7.5.0/\
1010
n3dr-ubuntu-latest.sha512.txt \
1111
-o n3dr-ubuntu-latest.sha512.txt && \
1212
sha512sum -c n3dr-ubuntu-latest.sha512.txt && \

internal/app/n3dr/artifactsv2/count/artifacts_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build !integration
2-
31
package count
42

53
import (

internal/app/n3dr/artifactsv2/upload/upload_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build !integration
2-
31
package upload
42

53
import (

internal/app/n3dr/config/repository/repository_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build !integration
2-
31
package repository
42

53
import (

internal/app/n3dr/config/security/anonymous_test.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//go:build !integration
2-
31
package security
42

53
import (

0 commit comments

Comments
 (0)