func NewCommand(
	name string,
	builder appflag.Builder,
) *appcmd.Command {
	return &appcmd.Command{
		Use:   name + " <directory>",
		Short: "Open the module's homepage in a web browser.",
		Long:  `The first argument is the directory of the local module to open. If no argument is specified, defaults to "."`,
		Args:  cobra.MaximumNArgs(1),
		Run: builder.NewRunFunc(
			func(ctx context.Context, container appflag.Container) error {
				return run(ctx, container)
			},
			bufcli.NewErrorInterceptor(),
		),
	}
}
// NewCommand returns a new open Command.
NewCommand returns a new open Command.
// NewCommand returns a new open Command .
func NewCommand(
	name string,
	builder appflag.Builder,
) *appcmd.Command {
	return &appcmd.Command{
		Use:   name + " <directory>",
		Short: "Open the module's homepage in a web browser.",
		Long:  `The first argument is the directory of the local module to open. If no argument is specified, defaults to "."`,
		Args:  cobra.MaximumNArgs(1),
		Run: builder.NewRunFunc(
			func(ctx context.Context, container appflag.Container) error {
				return run(ctx, container)
			},
			bufcli.NewErrorInterceptor(),
		),
	}
}
func NewCommand ( name string , builder appflag . Builder , ) * appcmd . Command { return & appcmd . Command { Use : name + " " , Short : " " , Long : `The first argument is the directory of the local module to open. If no argument is specified, defaults to "."` , Args : cobra . MaximumNArgs ( 1 ) , Run : builder . NewRunFunc ( func ( ctx context . Context , container appflag . Container ) error { return run ( ctx , container ) } , bufcli . NewErrorInterceptor ( ) , ) , } }
NewCommand returns a new open Command.
NewCommand returns a new open Command .