From 62579b1c5e6d5b985bb71d4d9e83f2ea384322b3 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Sat, 21 Jun 2025 06:44:16 +0100 Subject: [PATCH] upd docstrings --- version.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/version.go b/version.go index 4abfc6e..480f5d5 100644 --- a/version.go +++ b/version.go @@ -13,13 +13,13 @@ var version string // VersionFlag is a custom flag type for displaying version information. type VersionFlag string -// Decode implements the kong.Flag interface for VersionFlag. +// Decode implements the kong.Flag interface. func (v VersionFlag) Decode(_ *kong.DecodeContext) error { return nil } -// IsBool implements the kong.Flag interface for VersionFlag. +// IsBool implements the kong.Flag interface. func (v VersionFlag) IsBool() bool { return true } -// BeforeApply implements the kong.Flag interface for VersionFlag. +// BeforeApply implements the kong.Flag interface. func (v VersionFlag) BeforeApply(app *kong.Kong, _ kong.Vars) error { // nolint: unparam if version == "" { info, ok := debug.ReadBuildInfo()