alwaysai
Version:
The alwaysAI command-line interface (CLI)
15 lines (12 loc) • 486 B
text/typescript
import { CliArgvInterface } from '@alwaysai/alwayscli';
import { root } from './root';
import { runWithEchoAndProceedPrompt } from './components/general/run-with-echo-and-proceed-prompt';
const argvInterface = CliArgvInterface(root);
export async function aai(argvString: string, props: { yes?: boolean } = {}) {
const { yes = false } = props;
const argv = argvString.split(' ');
await runWithEchoAndProceedPrompt(argvInterface, argv, {
yes,
functionName: 'aai'
});
}