Browse code

Cleaning of local function names

Blackbeard authored on 2018-09-12 03:55:57
Showing 1 changed files
... ...
@@ -7,8 +7,8 @@ SAY_MESSAGE_CONTINUE="You can continue working now"
7 7
 POPUP_MESSAGE_REST="Time to rest."
8 8
 
9 9
 function _pomodoro_clock {
10
-    local _time="$1"
11
-    sleep "$_time"
10
+    local time="$1"
11
+    sleep "$time"
12 12
 }
13 13
 
14 14
 function _pomodoro_sound {
... ...
@@ -34,17 +34,21 @@ function _pomodoro_popup {
34 34
 function _pomodoro_work {
35 35
     # work for during WORK_TIME
36 36
     _pomodoro_clock "$WORK_TIME"
37
+    
37 38
     # when clock ends it is time to stop
38 39
     _pomodoro_sound "$SOUND"
39 40
     _pomodoro_say "$SAY_MESSAGE_STOP"
40 41
     _pomodoro_popup "$POPUP_MESSAGE_REST" "$REST_TIME"
42
+    
41 43
     # after popup ends you can go back to work
42 44
     _pomodoro_say "$SAY_MESSAGE_CONTINUE"
43 45
 }
44 46
 
45 47
 function _pomodoro_rest {
48
+    # rest for a while
46 49
     _pomodoro_sound "$SOUND"
47 50
     _pomodoro_popup "$POPUP_MESSAGE_REST" "$REST_TIME"
51
+    
48 52
     #time to go back to work after popup ends
49 53
     _pomodoro_say "$SAY_MESSAGE_CONTINUE"
50 54
 }
... ...
@@ -58,7 +62,6 @@ function main {
58 62
     return
59 63
 }
60 64
 
61
-
62 65
 #	    -p | --playlist-id )    argument_playlist_id "$2" ; shift ; shift  ;;
63 66
 function _handle_arguments {
64 67
     while [ "$1" != "" ]; do