interactic
v1.0.0
Published
executes a sequence of interactive processes
Downloads
45
Readme
interactic
executes a sequence of interactive processes
Uses execa to call a sequence of commands.
Include with npm i interactic [email protected]
Then you can call it like this:
const interactic = requre 'interactic'
import { CommandSpec } from 'magicalstrings';
const tempCommandSpecs: CommandSpec[] = [
{
title: 'create react app'
file: 'create-react-app
},
];
const codeDir = '/tmp/interactiveSequenceTest';
async () => {
await interactic(tempCommandSpecs, codeDir)
})
API
async function interactic(commandSpecs: CommandSpec[],
codeDir: string)
Check out the CommandSpec type in magicalstrings for more info about that. The codeDir
string is directory where you want the command to be executed.