INNER CODE UNIT · Go

toOptionsString

Legit-Labs/legitify · cmd/analyze.go:36

func toOptionsString(options []string) string {
	return "[" + strings.Join(options, "/") + "]"
}

var analyzeArgs args

func newAnalyzeCommand() *cobra.Command {
	analyzeCmd := &cobra.Command{
		Use:          "analyze",
		Short:        `Analyze GitHub/GitLab organizations associated with a PAT to find security issues`,
		RunE:         executeAnalyzeCommand,
		SilenceUsage: true,
		PostRun: func(cmd *cobra.Command, args []string) {
			lineStart := color.New(color.FgMagenta, color.Bold).Sprintf("--->")
			legitify := color.New(color.FgMagenta, color.Bold).Sprintf("legitify")
			legitifyMail := color.New(color.FgMagenta, color.Bold).Sprintf("legitify@legitsecurity.com")
			legitText := fmt.Sprintf("%s If you have any questions or you need assistance using %s,"+
				" please don't hesitate REACHING OUT @ %s", lineStart, legitify, legitifyMail)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…