From f2965c0df9beed69ab0036a4df76b9af5ef65424 Mon Sep 17 00:00:00 2001 From: Ogulcan Aydogan Date: Thu, 11 Jun 2026 09:52:20 +0100 Subject: [PATCH] docs: add Long description and example to version command Signed-off-by: Ogulcan Aydogan --- cmd/notation/version.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmd/notation/version.go b/cmd/notation/version.go index 76eb48a6c..825b6ae6e 100644 --- a/cmd/notation/version.go +++ b/cmd/notation/version.go @@ -25,7 +25,12 @@ func versionCommand() *cobra.Command { cmd := &cobra.Command{ Use: "version", Short: "Show the notation version information", - Args: cobra.NoArgs, + Long: `Show the notation version information + +Example - Show notation version: + notation version +`, + Args: cobra.NoArgs, Run: func(cmd *cobra.Command, args []string) { runVersion() },