executes a sequence of interactive processes
npm install interactic
[//]: # ( ns__file unit: standard, comp: README.md )
[//]: # ( ns__custom_start beginning )
[//]: # ( ns__custom_end beginning )
[//]: # ( ns__start_section intro )
[//]: # ( ns__custom_start description )
interactic
======
executes a sequence of interactive processes
[//]: # ( ns__custom_end description )
[//]: # ( ns__custom_start afterDescription )
[//]: # ( ns__custom_end afterDescription )
[//]: # ( ns__custom_start badges )
[//]: # ( ns__start_section usageSection )






[//]: # ( ns__custom_end badges )
[//]: # ( ns__end_section intro )
[//]: # ( ns__start_section api )
[//]: # ( ns__custom_start APIIntro )
Uses execa to call a sequence of commands.
Include with npm i interactic magicalstrings@0.1.14
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)
})
`
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. [//]: # ( ns__custom_end APIIntro )
[//]: # ( ns__custom_start constantsIntro )
[//]: # ( ns__custom_end constantsIntro )
[//]: # ( ns__start_section types )
[//]: # ( ns__end_section types )
[//]: # ( ns__end_section api )