Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#!/usr/bin/env node
import * as figlet from "figlet";
declare function require(id: string): any;
require('yargonaut')
.helpStyle('green')
.errorsStyle('red.bold');
import {bootstrap, loadBootstrapOptions} from "@sakuli/core";
import * as yargs from 'yargs';
import chalk from 'chalk';
import {runCommand} from './commands/run-command.function';
import {loadPresets} from "./load-presets.function";
import {cwd} from "process";
import {cli} from "./cli-utils/command-line.class";
(async () => {
const options = await loadBootstrapOptions(cwd());
const sakuli = await bootstrap(options, loadPresets);
#!/usr/bin/env node
require('yargonaut')
.helpStyle('green')
.errorsStyle('red');
const yargs = require('yargs');
const appCmds = require('./namespaces/app/index.js');
const posCmds = require('./namespaces/pos/index.js');
const newCmds = require('./namespaces/new/index.js');
yargs
.usage('usage: $0 ')
.demand(1)
.command(appCmds)
.command(posCmds)
.command(newCmds)
.strict()
require('yargonaut')
.helpStyle('green.underline')
.errorsStyle('red.bold');
import 'colors';
import 'fetch-everywhere';
import yargs from 'yargs';
import { version } from '../package.json';
import apiUrls from '../config/services';
import autoUpdate from './commands/update-cli';
import * as analytics from './services/analytics';
import { isAscii, containsSpace } from './services/validation';
import getHomeDir from './home-dir';
import { authorizeRequests, getRefreshToken } from './clients/auth-service';
const cliReferenceUrl = 'https://shoutem.github.io/docs/extensions/reference/cli';