app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = &cli.Command{
	Name:  "policybgp",
	Usage: "Inject policy routing config via BGP",

	Flags: []cli.Flag{
		&cli.BoolFlag{
			Name:  "verbose",
			Usage: "enable verbose logging",
		},
	},

	Commands: []*cli.Command{
		serve.Command,
	},
	Before: func(ctx context.Context, cmd *cli.Command) (context.Context, error) {
		if err := beforeImpl(ctx, cmd); err != nil {

			cmd.Writer = cmd.ErrWriter

			cli.HelpPrinter = func(_ io.Writer, _ string, _ interface{}) {}
			return ctx, err
		}

		return ctx, nil
	},
	After: func(ctx context.Context, cmd *cli.Command) error {
		_ = zap.L().Sync()
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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