Commit graph

153 commits

Author SHA1 Message Date
Jérémy Lecour b8b94a66ce ignore unknown arguments that don't start with a "-" 2019-03-18 13:36:07 +01:00
Jérémy Lecour c9c061f811 long and short commit information 2019-03-18 07:44:28 +01:00
Jérémy Lecour 80087f3c38 small display fix 2019-03-16 20:09:33 +01:00
Jérémy Lecour d05de0f925 replace $(echo $(cmd)) by $(cmd) 2019-03-16 19:40:53 +01:00
Jérémy Lecour 71d1fc417c "who -m" output must be normalized 2019-03-16 19:40:20 +01:00
Jérémy Lecour ac86a97531 update README 2019-03-16 12:14:44 +01:00
Jérémy Lecour 8561d64c0e README in Markdown 2019-03-16 12:13:23 +01:00
Jérémy Lecour ac111c2742 update README with usage output 2019-03-16 12:12:48 +01:00
Jérémy Lecour c47ebee7c0 Improve logging
logging is treated as other hooks regarding verbose and dry-run modes
2019-03-15 22:53:08 +01:00
Jérémy Lecour 72f7dc1159 reading from stdin is back! 2019-03-13 15:40:48 +01:00
Jérémy Lecour 7a2945a1e3 bump beta version 2019-03-13 15:35:44 +01:00
Jérémy Lecour 6d134e2d89 move copyrigh and license into "show_version()" 2019-03-12 23:57:24 +01:00
Jérémy Lecour 42b781db96 Display git statuses before typing the message 2019-03-12 23:31:58 +01:00
Jérémy Lecour ca9c7ec654 Add "auto" mode 2019-03-12 23:29:25 +01:00
Jérémy Lecour 0a6a45066d Split interactive and non interactive parts of hooks execution 2019-03-12 22:49:27 +01:00
Jérémy Lecour e0a75db015 typo 2019-03-12 12:12:02 +01:00
Jérémy Lecour 7b2a3fbcd1 bump version to 0.5.0.beta3 2019-03-10 23:04:22 +01:00
Jérémy Lecour d619072254 replace - by * so printf doesn't think they are options 2019-03-10 23:01:59 +01:00
Jérémy Lecour cc71b797c9 bump version to 5.0.0.beta2 2019-03-10 22:54:56 +01:00
Jérémy Lecour 5f06aec803 replace nested if/else/if with if/elif 2019-03-10 22:32:49 +01:00
Jérémy Lecour 7833c9c3ee replace a couple of echo with printf 2019-03-10 22:32:03 +01:00
Jérémy Lecour 42bb96d005 Let's consider that [] is the default test idiom when combined with if 2019-03-10 22:31:34 +01:00
Jérémy Lecour 90e3bc188f binaries and interactive variables are readonly 2019-03-10 19:06:59 +01:00
Jérémy Lecour 0514663977 simplify default values declaration 2019-03-10 19:06:39 +01:00
Jérémy Lecour b1e2a6ac0f Rename variables for hooks 2019-03-10 19:05:30 +01:00
Jérémy Lecour 9f99b12cd4 update changelogs 2019-03-10 11:16:57 +01:00
Jérémy Lecour 3ded64677f whitespace 2019-03-10 00:47:58 +01:00
Jérémy Lecour 434536b1e9 Use multiple sed (internal) commands
Instead of a single command with ultiple substitutions, we use multiple 
(internal) commands, for better error handling and line-splitting.
2019-03-10 00:42:25 +01:00
Jérémy Lecour e31e5c73df quote PG variables 2019-03-10 00:40:46 +01:00
Jérémy Lecour 6568e66f73 Use printf instead of echo
The behaviour of "echo" is unspecified when the string contains 
backslashes.
2019-03-10 00:34:33 +01:00
Jérémy Lecour 0c6123bb54 Add "version" and "help" options 2019-03-10 00:31:28 +01:00
Jérémy Lecour d01e79e832 add a prompt indicator 2019-03-09 22:09:26 +01:00
Jérémy Lecour ca62314864 initialize GIT_COMMITS variable 2019-03-09 22:03:25 +01:00
Jérémy Lecour 44d83dd474 fix hook_mail with for yes answer 2019-03-09 22:03:09 +01:00
Jérémy Lecour cf05263adb move questions in the while loop 2019-03-09 21:59:37 +01:00
Jérémy Lecour 1bfe7c4b86 The mail recipient can be modified on the fly 2019-03-09 21:59:17 +01:00
Jérémy Lecour c2b44f0e48 extract functions 2019-03-09 21:57:56 +01:00
Jérémy Lecour 997eff6ca7 interactive hooks + add verbose mode + shellcheck fixes 2019-03-09 20:56:53 +01:00
Jérémy Lecour b9da112b6d Add real interactive mode
The message can be given as an option, as stdin or interactively.
2019-03-09 14:01:38 +01:00
Jérémy Lecour 293c38fb83 Improve "dry run" mode
Hooks are executed, but they show the actions instead of doing them.
2019-03-09 13:48:38 +01:00
Jérémy Lecour 463555475b Add dry-run option 2019-03-07 23:28:13 +01:00
Jérémy Lecour d9fedcdbcf use test instead of [] 2019-03-07 23:28:13 +01:00
Jérémy Lecour 4e2d55ea5e fix git diff append 2019-03-07 23:28:13 +01:00
Jérémy Lecour b73bd72eac Use $(...) notation instead of legacy backticked ... 2019-03-07 23:28:13 +01:00
Jérémy Lecour 6b70d2416c rename hook functions 2019-03-07 23:28:13 +01:00
Jérémy Lecour e528a27048 extract more functions 2019-03-07 23:28:13 +01:00
Jérémy Lecour d26aea7ab2 Parse options 2019-03-07 23:28:13 +01:00
Jérémy Lecour 3dba4f7fc1 extract functions 2019-03-07 23:28:13 +01:00
Jérémy Lecour 5e0705391e whitespaces 2019-03-07 23:28:02 +01:00
Victor Laborie 0621f62267 Merge branch 'vagrantfile' of evolix/evomaintenance into master 2019-02-14 10:41:02 +01:00