func NewUploadSourcemapCmd()

in cmd/apmtool/sourcemap.go [95:124]


func NewUploadSourcemapCmd(commands *Commands) *cli.Command {
	return &cli.Command{
		Name:   "upload-sourcemap",
		Usage:  "upload a source map to Kibana",
		Action: commands.uploadSourcemapCommand,
		Flags: []cli.Flag{
			&cli.StringFlag{
				Name:     "file",
				Aliases:  []string{"f"},
				Required: true,
				Usage:    "File containing the sourcemap to upload. Sourcemap must be provided via this flag or stdin.",
			},
			&cli.StringFlag{
				Name:     "service-name",
				Required: true,
				Usage:    "service.name value to match against events",
			},
			&cli.StringFlag{
				Name:     "service-version",
				Required: true,
				Usage:    "service.version value to match against events",
			},
			&cli.StringFlag{
				Name:     "bundle-filepath",
				Required: true,
				Usage:    "Source bundle filepath to match against stack frames locations.",
			},
		},
	}
}