i18n CLI options

This commit is contained in:
Marko Korhonen 2023-11-27 17:57:13 +02:00
parent 3239a7c611
commit c97472f6f5
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
7 changed files with 67 additions and 18 deletions

View file

@ -1,11 +1,7 @@
import getConfig from './config.js';
import input from './input.js';
import output from './output.js';
import { WtcRuntimeConfig } from './types/WtcConfig.js';
const ui = async () => {
const config = getConfig();
const result = await input(config);
output(result, config);
};
const ui = async (config: WtcRuntimeConfig) => output(await input(config), config);
export default ui;