mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(time) time.get -> time
This commit is contained in:
parent
52142ed141
commit
50cca39a04
3 changed files with 4 additions and 4 deletions
|
|
@ -42,11 +42,11 @@
|
|||
break;
|
||||
|
||||
case 'time':
|
||||
time.get(path, callback);
|
||||
time(path, callback);
|
||||
break;
|
||||
|
||||
case 'time raw':
|
||||
time.get(path, 'raw', callback);
|
||||
time(path, 'raw', callback);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
getTimes(function(times) {
|
||||
var readTime = times[name];
|
||||
|
||||
time.get(name, 'raw', function(error, fileTime) {
|
||||
time(name, 'raw', function(error, fileTime) {
|
||||
var json, timeChanged;
|
||||
|
||||
if (!error && readTime !== fileTime) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
var fs = require('fs'),
|
||||
Util = require('../util');
|
||||
|
||||
exports.get = function(filename, option, callback) {
|
||||
module.exports = function(filename, option, callback) {
|
||||
var isRaw = option === 'raw';
|
||||
|
||||
if (!callback)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue