func NewCommand(
	name string,
	builder appflag.Builder,
) *appcmd.Command {
	flags := newFlags()
	return &appcmd.Command{
		Use:   name + " <input>",
		Short: "Build all Protobuf files from the specified input and output a Buf image.",
		Long:  bufcli.GetInputLong(`the source or module to build or image to convert`),
		Args:  cobra.MaximumNArgs(1),
		Run: builder.NewRunFunc(
			func(ctx context.Context, container appflag.Container) error {
				return run(ctx, container, flags)
			},
			bufcli.NewErrorInterceptor(),
		),
		BindFlags: flags.Bind,
	}
}
// NewCommand returns a new Command.
NewCommand returns a new Command.
// NewCommand returns a new Command .
func NewCommand(
	name string,
	builder appflag.Builder,
) *appcmd.Command {
	flags := newFlags()
	return &appcmd.Command{
		Use:   name + " <input>",
		Short: "Build all Protobuf files from the specified input and output a Buf image.",
		Long:  bufcli.GetInputLong(`the source or module to build or image to convert`),
		Args:  cobra.MaximumNArgs(1),
		Run: builder.NewRunFunc(
			func(ctx context.Context, container appflag.Container) error {
				return run(ctx, container, flags)
			},
			bufcli.NewErrorInterceptor(),
		),
		BindFlags: flags.Bind,
	}
}
func NewCommand ( name string , builder appflag . Builder , ) * appcmd . Command { flags := newFlags ( ) return & appcmd . Command { Use : name + " " , Short : " " , Long : bufcli . GetInputLong ( `the source or module to build or image to convert` ) , Args : cobra . MaximumNArgs ( 1 ) , Run : builder . NewRunFunc ( func ( ctx context . Context , container appflag . Container ) error { return run ( ctx , container , flags ) } , bufcli . NewErrorInterceptor ( ) , ) , BindFlags : flags . Bind , } }
NewCommand returns a new Command.
NewCommand returns a new Command .