Blame SOURCES/0002-feat-Include-Description-in-help-output.patch

f94f6d
From 1d2d42276b6acc8cba062da9536e8acae69034be Mon Sep 17 00:00:00 2001
f94f6d
From: Link Dupont <link@sub-pop.net>
f94f6d
Date: Wed, 30 Jun 2021 14:47:00 -0400
f94f6d
Subject: [PATCH 2/2] feat: Include Description in help output
f94f6d
f94f6d
Fixes ESSNTL-838
f94f6d
f94f6d
Signed-off-by: Link Dupont <link@sub-pop.net>
f94f6d
---
f94f6d
 cmd/ygg/main.go | 8 ++++++++
f94f6d
 1 file changed, 8 insertions(+)
f94f6d
f94f6d
diff --git a/cmd/ygg/main.go b/cmd/ygg/main.go
f94f6d
index f5c5c47..5524347 100644
f94f6d
--- a/cmd/ygg/main.go
f94f6d
+++ b/cmd/ygg/main.go
f94f6d
@@ -28,6 +28,14 @@ func main() {
f94f6d
 	app.Name = yggdrasil.ShortName
f94f6d
 	app.Version = yggdrasil.Version
f94f6d
 	app.Usage = "control the system's connection to " + yggdrasil.Provider
f94f6d
+	app.Description = "The " + app.Name + " command controls the system's connection to " + yggdrasil.Provider + ".\n\n" +
f94f6d
+		"To connect the system using an activation key:\n" +
f94f6d
+		"\t" + app.Name + " connect --organization ID --activation-key KEY\n\n" +
f94f6d
+		"To connect the system using a username and password:\n" +
f94f6d
+		"\t" + app.Name + " connect --username USERNAME --password PASSWORD\n\n" +
f94f6d
+		"To disconnect the system:\n" +
f94f6d
+		"\t" + app.Name + " disconnect\n\n" +
f94f6d
+		"Run '" + app.Name + " command --help' for more details."
f94f6d
 
f94f6d
 	log.SetFlags(0)
f94f6d
 	log.SetPrefix("")
f94f6d
-- 
f94f6d
2.31.1
f94f6d