Sam Therapy
962a445322
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
20 lines
434 B
JavaScript
20 lines
434 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import getConfig from "./helpers/getConfig.js";
|
|
import { config } from "./helpers/types.js";
|
|
import getLocalImage from "./getLocalImage.js";
|
|
import getRemoteImage from "./getRemoteImage.js";
|
|
|
|
/**
|
|
* Main function
|
|
*/
|
|
async function main() {
|
|
const conf: config = await getConfig();
|
|
|
|
if (conf.remote) await getRemoteImage(conf);
|
|
else await getLocalImage(conf);
|
|
}
|
|
|
|
// Run the main function, obviously.
|
|
main();
|