Files
js-scripts/scripts/cal.js
2025-04-05 16:57:26 +08:00

14 lines
301 B
JavaScript

#! /usr/bin/env runjs
var main = () => {
if ($STR(__.environment.getOS().name()) == 'MacOS') {
// macOS
$$.shell().inheritIO().commands('cal', '-A', '1', '-B', '1').run();
} else {
// Linux
$$.shell().inheritIO().commands('cal', '-3').run();
}
};
main();