From 5242188ffa8b742f03ad03595c25794c3493cfc7 Mon Sep 17 00:00:00 2001 From: perp Date: Wed, 2 Aug 2023 05:02:57 +0100 Subject: [PATCH] :children_crossing: Ease of use Added an example. --- cmd/shogo/commands/alert/create.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/shogo/commands/alert/create.go b/cmd/shogo/commands/alert/create.go index 8ee9cf3..2b2d878 100644 --- a/cmd/shogo/commands/alert/create.go +++ b/cmd/shogo/commands/alert/create.go @@ -9,9 +9,10 @@ import ( // Create command var createCmd = &cobra.Command{ - Use: "create", - Short: "Create an alert", - Args: cobra.MinimumNArgs(2), + Use: "create", + Short: "Create an alert", + Example: "create ", + Args: cobra.MinimumNArgs(2), Run: func(_ *cobra.Command, args []string) { utils.CheckColor() alert.Create(args[0], args[1])