cli

package
v0.0.0-...-6176faa Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

pkg/cli.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuditEndpoints

func AuditEndpoints(timeoutCtx context.Context, targetURLs []string, headers map[string]string, outputFile string)

AuditEndpoints checks each target URL for introspection and writes the results to file.

func DisplayLogo()

func GenerateAndPrintOperations

func GenerateAndPrintOperations(
	generateFn func(*types.GQLSchema, string, int) (string, error),
	schemaObj *types.GQLSchema,
	names []string,
	maxDepth int,
	opType string,
)

func HandleSchemaFile

func HandleSchemaFile(filePath, listOption, queryOption, mutationOption string, allQueries, allMutations bool, maxDepth int)

HandleSchemaFile processes an introspection JSON file and handles schema-related operations.

func PrintAvailableOperations

func PrintAvailableOperations(schemaObj *types.GQLSchema, listOption string)

PrintAvailableOperations prints the names of queries and/or mutations in the schema.

func SetupSignalHandler

func SetupSignalHandler(parent context.Context) (context.Context, context.CancelFunc)

SetupSignalHandler creates a cancellable context and registers a signal handler for graceful shutdown. It returns the new context and its cancel function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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