cli

package
v0.0.0-...-431c055 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagDatabasePath        = "database-path"
	FlagLeakPath            = "leak-path"
	FlagLeakContext         = "context"
	FlagLeakPlatforms       = "platforms"
	FlagLeakShareDate       = "share-date"
	FlagLeakers             = "leakers"
	FlagNotifyNewLeakURL    = "notify url"
	FlagSkipInteractiveMode = "skip-interactive-mode"
)
View Source
const MaxErrorLogCalls = 20000

Variables

View Source
var AliasesFlagDatabasePath = []string{"db"}
View Source
var AliasesFlagLeakContext = []string{"c"}
View Source
var AliasesFlagLeakPath = []string{"lp"}
View Source
var AliasesFlagLeakPlatforms = []string{"p"}
View Source
var AliasesFlagLeakShareDate = []string{"sd"}
View Source
var AliasesFlagLeakers = []string{"l"}
View Source
var AliasesFlagNotifyNewLeakURL = []string{"notify-url"}
View Source
var AliasesFlagSkipInteractiveMode = []string{"skip"}

Functions

func CreateAction

func CreateAction(databasePath *string, leakPath *string, context *string, platforms *cli.StringSlice,
	shareDate *cli.Timestamp, leakers *cli.StringSlice, notifyNewLeakURL *string, skipInteractiveMode *bool,
	storeImport func(databasePath string, i query.Import) (entity.AutoGenKey, error),
	notifyImport func(entity.AutoGenKey, string) error,
) func(cCtx *cli.Context) error

func CreateAppHelpTemplate

func CreateAppHelpTemplate(base string) string

func CreateCliApp

func CreateCliApp(storeImport func(databasePath string, i query.Import) (entity.AutoGenKey, error), notifyImport func(entity.AutoGenKey, string) error) cli.App

func CreateCliAuthors

func CreateCliAuthors() []*cli.Author

func CreateCliFlags

func CreateCliFlags(databasePath *string, leakPath *string, context *string,
	platforms *cli.StringSlice, shareDate *cli.Timestamp, leakers *cli.StringSlice,
	notifyNewLeakURL *string, skipInteractiveMode *bool,
) []cli.Flag

func IsProceedAnswer

func IsProceedAnswer(s []string, e string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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