Skip to content

Commit

Permalink
Revert showing docs links in stratus show to avoid coupling with the …
Browse files Browse the repository at this point in the history
…docs
  • Loading branch information
christophetd committed Jan 27, 2022
1 parent 9644126 commit e6b3dba
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions cmd/stratus/show_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"errors"
"fmt"
"github.com/datadog/stratus-red-team/pkg/stratus"
"github.com/fatih/color"
"github.com/spf13/cobra"
)

Expand All @@ -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,
)
}

0 comments on commit e6b3dba

Please sign in to comment.