protodeps

package
v0.0.0-...-5c3e8ab Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdProtoDeps = &cobra.Command{
	Use: "proto-deps",

	Short: "Generate a Proto dependencies",
	Long:  `Generate a Proto dependencies`,

	RunE: func(cmd *cobra.Command, args []string) error {
		ctx := context.Background()

		generator, err := gen.NewGenerator(protodeps.Config{
			ForceGenerate: flagForceGenerate,
			GithubToken:   flagGitHubToken,
			ProtoDepsPath: flagProtoDepsPath,
		})
		if err != nil {
			return fmt.Errorf("boiler: failed to create generator: %w", err)
		}
		if err = generator.Generate(ctx); err != nil {
			return fmt.Errorf("boiler: generator failed: %w", err)
		}
		log.Infof("boiler: proto dependencies generated")

		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