UNPKG

vasku

Version:

TVM-Solidity contract development framework

15 lines (12 loc) 428 B
import * as fs from 'fs' import { printGreeting } from './actions/init/printGreeting' import { showInitMenu } from './menus/showInitMenu' import { showBackupMenu } from './menus/showBackupMenu' export async function init (): Promise<void> { printGreeting() const targetDirectoryIsEmpty = fs.readdirSync(process.cwd()).length === 0 if (targetDirectoryIsEmpty) await showInitMenu() else await showBackupMenu() }