File tree 3 files changed +6
-7
lines changed
classes/META-INF/maven/jlog/jlog
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 72
72
(defn jlog
73
73
" Appends a worklog to the worklogs file. This is the jlog main function."
74
74
[arg1 arg2 message]
75
- (if ( = arg1 " -b " )
76
- (if (valid-jlog-time? arg2)
75
+ (cond
76
+ (= arg1 " -b " ) ( if (valid-jlog-time? arg2)
77
77
(spit-log arg2 @(get-jira-issue ) message)
78
78
(throw (Exception. " Invalid timelog format provided." )))
79
- (if (valid-jlog-time? arg1)
80
- (if (valid-jira-issue? arg2)
79
+ (valid-jlog-time? arg1) (if (valid-jira-issue? arg2)
81
80
(spit-log arg1 (upper-case arg2) message)
82
81
(throw (Exception. " Invalid Jira issue key format provided." )))
83
- (throw (Exception. " Invalid timelog format provided." ) ))))
82
+ :else (throw (Exception. " Invalid timelog format provided." ))))
84
83
85
84
(defn print-help
86
85
" Prints the possible jlog commands to the console."
Original file line number Diff line number Diff line change 1
1
# Leiningen
2
- # Thu Jun 20 11:14:17 EDT 2019
2
+ # Sat Jun 22 10:29:36 EDT 2019
3
3
version =0.1.0-SNAPSHOT
4
- revision =0ce5185f96c1bcb421eb86ecba0d9f9b4db27bc8
4
+ revision =d54419115067f3bd8ab705ad69d62847ea290718
5
5
groupId =jlog
6
6
artifactId =jlog
You can’t perform that action at this time.
0 commit comments