alks
Version:
CLI for working with ALKS
17 lines (13 loc) • 430 B
text/typescript
import { getDeveloper, updateDeveloper } from './developer';
import { log } from '../log';
export async function getOutputFormat(): Promise<string> {
const developer = await getDeveloper();
if (developer.outputFormat) {
log('using stored output format');
return developer.outputFormat;
}
return 'env';
}
export async function setOutputFormat(outputFormat: string) {
await updateDeveloper({ outputFormat });
}