feat: scripts
This commit is contained in:
13
scripts/cal.js
Normal file
13
scripts/cal.js
Normal file
@@ -0,0 +1,13 @@
|
||||
#! /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();
|
||||
Reference in New Issue
Block a user