UNPKG

@splunk/rum-cli

Version:

Tools for handling symbol and mapping files for symbolication

64 lines (61 loc) 2.91 kB
#!/usr/bin/env node "use strict"; /* eslint-disable header/header */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); /* * Copyright Splunk Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ const commander_1 = require("commander"); const ios_1 = require("./commands/ios"); const android_1 = require("./commands/android"); const sourcemaps_1 = require("./commands/sourcemaps"); const packageJson = __importStar(require("../package.json")); const program = new commander_1.Command(); const helpDescription = `The Splunk RUM CLI is a tool for uploading and displaying of Android, iOS, and Browser symbolication files to and from Splunk Observability Cloud. For each respective command listed below under 'Commands', please run 'splunk-rum <command>' for an overview of available subcommands and options. For subcommands like "upload" and "list" that make an API call, please ensure that the realm and token are either passed into the command as options, or set using the environment variables SPLUNK_REALM and SPLUNK_ACCESS_TOKEN. `; program .version(packageJson.version) .description(helpDescription) .name('splunk-rum') .usage('[command] [subcommand] [options]'); program.addCommand(ios_1.iOSCommand); program.addCommand(android_1.androidCommand); program.addCommand(sourcemaps_1.sourcemapsCommand); program.parseAsync(process.argv);