UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

28 lines (26 loc) 809 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fs_1 = require("fs"); const ora = require("ora"); const constants_1 = require("../constants"); const APPLICATION_SOURCE_CODE = `import cv2 import edgeiq def main(): # Your alwaysAI app goes here! pass if __name__ == "__main__": main()`; async function writeAppPyFileComponent() { try { fs_1.writeFileSync(constants_1.APP_DOT_PY, APPLICATION_SOURCE_CODE, { flag: 'wx' }); ora(`Write ${constants_1.APP_DOT_PY}`).succeed(); } catch (ex) { if (ex.code !== 'EEXIST') { throw ex; } ora(`Found ${constants_1.APP_DOT_PY}`).succeed(); } } exports.writeAppPyFileComponent = writeAppPyFileComponent; //# sourceMappingURL=write-app-py-file-component.js.map