func (cmd *CommandRun) Inputs() cli.InputResolver {
	return &cmd.inputs
}
Inputs is the command inputs
package function
import (
	"encoding/json"
	"fmt"
	"strconv"
	"github.com/10gen/realm-cli/internal/cli"
	"github.com/10gen/realm-cli/internal/cli/user"
	"github.com/10gen/realm-cli/internal/cloud/realm"
	"github.com/10gen/realm-cli/internal/terminal"
	"github.com/10gen/realm-cli/internal/utils/flags"
)
var CommandMetaRun = cli.CommandMeta{
	Use:         "run",
	Description: "Run a Function from your Realm app",
	HelpText: `Realm Functions allow you to define and execute server-side logic for your Realm
app. Once you select and run a Function for your Realm app, the following will
be displayed:
  - A list of logs, if present
  - The function result as a document
  - A list of error logs, if present`,
}
type CommandRun struct {
	inputs runInputs
}
func (cmd *CommandRun) Flags() []flags.Flag {
	return []flags.Flag{
		cli.AppFlagWithContext(&cmd.inputs.App, "to run its function"),
		cli.ProjectFlag(&cmd.inputs.Project),
		cli.ProductFlag(&cmd.inputs.Products),
		flags.StringFlag{
			Value: &cmd.inputs.Name,
			Meta: flags.Meta{
				Name:  "name",
				Usage: flags.Usage{Description: "Specify the name of the function to run"},
			},
		},
		flags.StringArrayFlag{
			Value: &cmd.inputs.Args,
			Meta: flags.Meta{
				Name: "args",
				Usage: flags.Usage{
					Description: "Specify the args to pass to your function",
					DocsLink:    "https://docs.mongodb.com/realm/functions/call-a-function/#call-from-realm-cli",
				},
			},
		},
		flags.StringFlag{
			Value: &cmd.inputs.User,
			Meta: flags.Meta{
				Name: "user",
				Usage: flags.Usage{
					Description:   "Specify which user to run the function as",
					DefaultValue:  "<none>",
					AllowedValues: []string{"<none>", "<userID>"},
					Note:          "Using <none> will run as the System user",
				},
			},
		},
	}
}