Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
addPluginConfig,
} from './configs'
import { prepend, safeReaddir, safeImport, safeRealpath, safeWhich } from './fp'
import * as git from './git'
import { getGitHubInstance } from './github'
const testing = process.env.NODE_ENV === 'testing'
// Make Fluture Play nicely with Sanctuary
const S = create({ checkTypes: true, env: env.concat(flutureEnv) })
// Allow mutation of options when not testing
// https://immerjs.github.io/immer/docs/freezing
setAutoFreeze(testing)
Future.debugMode(testing)
interface CommandInterface {
name: string
isPlugin?: boolean
DETAILS: {
alias: string
description: string
commands: string
options: object
shorthands: object
}
run: (options?: any, done?: any) => {}
}
interface PluginInterface extends CommandInterface {
new (any): CommandInterface
import * as git from './git'
import { getGitHubInstance } from './github'
import { spawnSync, execSyncInteractiveStream } from './exec'
import { readFileSync, writeFileSync } from 'fs'
import * as userhome from 'userhome'
const testing = process.env.NODE_ENV === 'testing'
// Make Fluture Play nicely with Sanctuary
const S = create({ checkTypes: true, env: env.concat(flutureEnv) })
// Allow mutation of options when not testing
// https://immerjs.github.io/immer/docs/freezing
setAutoFreeze(testing)
Future.debugMode(testing)
interface CommandInterface {
name: string
isPlugin?: boolean
DETAILS: {
alias: string
description: string
commands: string
options: object
shorthands: object
}
run: (options?: any, done?: any) => {}
}
interface PluginInterface extends CommandInterface {
new (any): CommandInterface