flag

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright © 2022 Flagship Team flagship@abtasty.com

Copyright © 2022 Flagship Team flagship@abtasty.com

Copyright © 2022 Flagship Team flagship@abtasty.com

Index

Constants

This section is empty.

Variables

View Source
var (
	Directory           string
	RepoURL             string
	RepoBranch          string
	NbLineCodeEdges     int
	FilesToExclude      string
	SearchCustomRegex   string
	CustomRegexJsonFile string
	CustomRegexJson     string
	OriginPlatform      string
)
View Source
var FSConfig *cbaConfig.Config
View Source
var FlagCmd = &cobra.Command{
	Use:   "flag [create|list]",
	Short: "Analyze your codebase and detect the usage of Flagship or custom flags",
	Long:  `Analyze your codebase and detect the usage of Flagship or custom flags, in order to synchronize them with your Flag view in the platform`,
	PreRun: func(cmd *cobra.Command, args []string) {
		PreRunConfiguration()
	},
	Run: func(cmd *cobra.Command, args []string) {
		err := handler.AnalyzeCode(FSConfig)
		if err != nil {
			log.Fatalf("error occured when analyzing: %s", err)
		}
	},
}

FlagCmd represents the flag command

Functions

func PreRunConfiguration

func PreRunConfiguration()

func RemoveDuplicateStr added in v0.6.0

func RemoveDuplicateStr(strSlice []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL