From e6b3dba869408d3dd23455e26dee40291e71f447 Mon Sep 17 00:00:00 2001 From: Christophe Tafani-Dereeper Date: Thu, 27 Jan 2022 12:48:17 +0100 Subject: [PATCH] Revert showing docs links in stratus show to avoid coupling with the docs --- cmd/stratus/show_cmd.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cmd/stratus/show_cmd.go b/cmd/stratus/show_cmd.go index 0c597187..06b71e32 100644 --- a/cmd/stratus/show_cmd.go +++ b/cmd/stratus/show_cmd.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "github.com/datadog/stratus-red-team/pkg/stratus" - "github.com/fatih/color" "github.com/spf13/cobra" ) @@ -29,16 +28,6 @@ func buildShowCmd() *cobra.Command { func doShowCmd(techniques []*stratus.AttackTechnique) { for i := range techniques { - fmt.Println() - fmt.Println(color.CyanString("View documentation at: " + buildDocsUrl(techniques[i]))) fmt.Println(techniques[i].Description) } } - -func buildDocsUrl(technique *stratus.AttackTechnique) string { - return fmt.Sprintf( - "https://stratus-red-team.cloud/attack-techniques/%s/%s/", - string(technique.Platform), - technique.ID, - ) -}