diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-04 19:05:36 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-04 19:05:36 +0900 |
| commit | 8fb6fdaa80e793928f80c45d058aa5aebf79e78b (patch) | |
| tree | d8c2486605843e6ec5f1019b5aa3dd3b36ef0e97 /internal | |
| parent | db69dcf0be0c1be4e3187027fa4199538013e76d (diff) | |
internal/pkg: prefix reporting names
This reads better than suffixes.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/pkg/compress.go | 4 | ||||
| -rw-r--r-- | internal/pkg/tar.go | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/pkg/compress.go b/internal/pkg/compress.go index a683c816..6d69143b 100644 --- a/internal/pkg/compress.go +++ b/internal/pkg/compress.go @@ -46,8 +46,8 @@ func NewDecompress(a Artifact, compress uint32) FileArtifact { return &da } -// String returns the name of the underlying [Artifact] suffixed with decompress. -func (a *decompressArtifactNamed) String() string { return a.name + "-decompress" } +// String returns the name of the underlying [Artifact] prefixed with decompress. +func (a *decompressArtifactNamed) String() string { return "decompress-" + a.name } // Kind returns the hardcoded [Kind] constant. func (a *decompressArtifact) Kind() Kind { return KindDecompress } diff --git a/internal/pkg/tar.go b/internal/pkg/tar.go index 0b40e103..d8ce3b67 100644 --- a/internal/pkg/tar.go +++ b/internal/pkg/tar.go @@ -25,8 +25,8 @@ type tarArtifactNamed struct { var _ fmt.Stringer = new(tarArtifactNamed) -// String returns the name of the underlying [Artifact] suffixed with unpack. -func (a *tarArtifactNamed) String() string { return a.name + "-unpack" } +// String returns the name of the underlying [Artifact] prefixed with unpack. +func (a *tarArtifactNamed) String() string { return "unpack-" + a.name } // NewTar returns a new [Artifact] unpacking the tar stream produced by the // backing [Artifact]. The source [Artifact] must be a [FileArtifact]. |
