mirror of
https://github.com/onyx-and-iris/gobs-cli.git
synced 2025-06-30 23:40:29 +01:00
upd docstrings
This commit is contained in:
parent
9ed00cd67c
commit
62579b1c5e
@ -13,13 +13,13 @@ var version string
|
|||||||
// VersionFlag is a custom flag type for displaying version information.
|
// VersionFlag is a custom flag type for displaying version information.
|
||||||
type VersionFlag string
|
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 }
|
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 }
|
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
|
func (v VersionFlag) BeforeApply(app *kong.Kong, _ kong.Vars) error { // nolint: unparam
|
||||||
if version == "" {
|
if version == "" {
|
||||||
info, ok := debug.ReadBuildInfo()
|
info, ok := debug.ReadBuildInfo()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user