UNPKG
rdtool
Version:
latest (1.0.5)
1.0.5
1.0.4
A simple Node.js-based remote deployment tool that makes deployments easier with config files.
rdtool
/
src
/
exec-plugins
/
print-time.js
11 lines
(8 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
const
dayjs =
require
(
"dayjs"
);
function
exec
(
client, config, command
) {
return
'当前时间:'
+
dayjs
().
format
(
"YYYY-MM-DD HH:mm:ss"
); }
module
.
exports
= {
name
:
"print-time"
, exec, };