You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/gtt-cancel.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@ let tasks = new Tasks(config);
17
17
18
18
tasks.cancel()
19
19
.then(frames=>{
20
-
frames.forEach(frame=>console.log(`Cancel project ${frame.project.magenta}${frame.resource.type.blue}${('#'+frame.resource.id).blue}, started ${moment(frame.start).fromNow().green}`))
20
+
frames.forEach(frame=>{
21
+
if(!frame.resource.new)
22
+
returnconsole.log(`Cancel project ${frame.project.magenta}${frame.resource.type.blue}${('#'+frame.resource.id).blue}, started ${moment(frame.start).fromNow().green}`)
23
+
24
+
console.log(`Cancel project ${frame.project.magenta} for new ${frame.resource.type} "${(frame.resource.id).blue}", started ${moment(frame.start).fromNow().green}`)
console.log(` ${frame.id}${moment(frame.start).format('HH:mm').green} to ${moment(frame.stop).format('HH:mm').green}\t${toHumanReadable(frame.duration)}\t\t${frame.project.magenta}\t\t${(frame.resource.type+' #'+frame.resource.id).blue}`)
console.log(` ${frame.id}${moment(frame.start).format('HH:mm').green} to ${moment(frame.stop).format('HH:mm').green}\t${toHumanReadable(frame.duration)}\t\t${frame.project.magenta}\t\t${issue}`)
Copy file name to clipboardExpand all lines: src/gtt-stop.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,11 @@ let config = new Config(__dirname),
17
17
18
18
tasks.stop()
19
19
.then(frames=>{
20
-
frames.forEach(frame=>console.log(`Stopping project ${frame.project.magenta}${frame.resource.type.blue}${('#'+frame.resource.id).blue}, started ${moment(frame.start).fromNow().green} (id: ${frame.id})`));
20
+
frames.forEach(frame=>{
21
+
if(!frame.resource.new)
22
+
returnconsole.log(`Stopping project ${frame.project.magenta}${frame.resource.type.blue}${('#'+frame.resource.id).blue}, started ${moment(frame.start).fromNow().green} (id: ${frame.id})`)
23
+
24
+
console.log(`Stopping project ${frame.project.magenta} for new ${frame.resource.type} "${(frame.resource.id).blue}", started ${moment(frame.start).fromNow().green} (id: ${frame.id})`)
0 commit comments