cmd

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 61 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Context added in v0.5.0

func Context(fileContext file.Context) (cont *base.Context, err error)

Context is a function that takes a file context and returns a base context and an error.

func DisplayCoverageInfo added in v0.4.0

func DisplayCoverageInfo(schemaCoverageInfo cov.SchemaCoverageInfo)

DisplayCoverageInfo - Display the schema coverage information

func HideSecret added in v0.7.7

func HideSecret(secret string) string

HideSecret replaces all but the first and last characters of a string with asterisks

func HideSecrets added in v0.7.7

func HideSecrets(secrets ...string) (rv []string)

HideSecrets obscures each string in a given list.

func NewConfigCommand added in v0.7.7

func NewConfigCommand() *cobra.Command

func NewCoverageCommand added in v0.4.0

func NewCoverageCommand() *cobra.Command

NewCoverageCommand - creates a new coverage command

func NewGenerateASTCommand added in v0.5.4

func NewGenerateASTCommand() *cobra.Command

NewGenerateASTCommand creates a new cobra.Command to generate the Abstract Syntax Tree (AST) from a given file. The command expects exactly one argument, which is the URL or path to the file. It also allows for flags registration for further validation (like coverage flags).

func NewMigrateCommand added in v0.3.1

func NewMigrateCommand() *cobra.Command

NewMigrateCommand - Creates new migrate command

func NewMigrateDownCommand added in v0.3.1

func NewMigrateDownCommand() *cobra.Command

NewMigrateDownCommand - Creates new migrate down command

func NewMigrateResetCommand added in v0.5.4

func NewMigrateResetCommand() *cobra.Command

NewMigrateResetCommand - Creates new migrate reset command

func NewMigrateStatusCommand added in v0.3.1

func NewMigrateStatusCommand() *cobra.Command

NewMigrateStatusCommand - Creates new migrate status command

func NewMigrateUpCommand added in v0.3.1

func NewMigrateUpCommand() *cobra.Command

NewMigrateUpCommand - Creates new migrate up command

func NewRootCommand

func NewRootCommand() *cobra.Command

NewRootCommand - Creates new root command

func NewServeCommand

func NewServeCommand() *cobra.Command

NewServeCommand returns a new Cobra command that can be used to run the "permify serve" command. The command takes no arguments and runs the serve() function to start the Permify service. The command has a short description of what it does.

func NewValidateCommand

func NewValidateCommand() *cobra.Command

NewValidateCommand - creates a new validate command

func NewVersionCommand added in v0.3.5

func NewVersionCommand() *cobra.Command

NewVersionCommand - Creates new Version command

Types

type ErrList added in v0.3.8

type ErrList struct {
	Errors []string
}

ErrList - error list

func (*ErrList) Add added in v0.3.8

func (l *ErrList) Add(message string)

Add - add error to error list

func (*ErrList) Print added in v0.3.8

func (l *ErrList) Print()

Print - print error list

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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