App-Dochazka-CLI
view release on metacpan or search on metacpan
0.030 2014-10-25 12:05 CEST
- bin/dochazka-cli: write a proper SYNOPSIS; add an optional 'sitedir'
command-line option; fix bug "dochazka-cli refuses to start unless
/etc/dochazka-cli directory exists and contains an empty file named
CLI_SiteConfig.pm"
0.031 2014-10-25 23:20 CEST
- Parser.pm: decide to move CLI documentation into REST resources; start
eliminating POD and streamlining the code; change 'privhistory' to 'priv'
0.032 2014-10-26 22:31 CET
- Parser.pm: embark on significant redesign of parse_tokens routine (WIP)
0.033 2014-10-27 09:35 CET
- Parser.pm: continue with wholesale refactor to make the parser more efficient
and maintainable
0.034 2014-10-27 12:45 CET
- Parser.pm: initial refactor complete; start (manual) testing
0.035 2014-10-27 13:09 CET
- Parser.pm: fix broken 'docu' command
0.036 2014-10-27 14:26 CET
- Parser.pm: tweak comments; fix "priv/current", "priv/eid/:eid/?:ts", and
"/priv/nick/:nick/?:ts" resource handlers
0.037 2014-10-27 17:49 CET
- Parser.pm: fix 'priv' handlers
0.038 2014-10-28 09:29 CET
- Parser.pm: handle activity resources; add '$method activity all' commands
0.039 2014-10-29 09:31 CET
- Parser.pm: support 'activity/all/disabled' resource
0.040 2014-10-29 10:31 CET
- Parser.pm: support 'activity/aid/:aid'
0.041 2014-10-29 13:50 CET
- Parser.pm: support PUT and DELETE requests for 'activity/aid/:aid'
0.042 2014-10-29 16:40 CET
- Parser.pm: support "/activity/code/:code"
0.043 2014-10-29 22:53 CET
- Parser.pm: support POST on 'activity/aid/:aid' and 'activity/code/:code',
even if just to verify 405 result
0.044 2014-10-30 18:20 CET
- Parser.pm: support 'activity/aid' and 'activity/code' resources
0.045 2014-10-31 21:20 CET
- Parser.pm: support 'docu/html' resource; fix 'post activity aid' command
0.046 2014-11-03 12:19 CET
- Parser.pm: change '/priv/current/...' and '/priv/history/current/...' to
'/priv/self/...' and '/priv/history/self/...', respectively
0.047 2014-11-03 13:06 CET
- Parser.pm: cleanup and add 'activity/help'
0.048 2014-11-03 15:54 CET
- Parser.pm: support "/schedule/eid/:eid/?:ts", "/schedule/help",
"/schedule/nick/:nick/?:ts", and "/schedule/self/?:ts" resources
0.049 2014-11-04 09:54 CET
- Parser.pm: activate '$method schedule history ...' commands; put some stanzas
into alphabetical order by resource name
0.050 2014-11-04 11:30 CET
- Parser.pm: support 'schedule/intervals' and 'schedule/intervals/:shid'
resources
0.051 2014-11-04 17:46 CET
- Parser.pm: 'schedule/intervals' JSON body might start with either { or [
0.052 2014-11-05 10:28 CET
- Parser.pm: support 'schedule/all' and 'schedule/all/disabled' resources
0.053 2014-11-06 16:35 CET
- Parser.pm: support '/schedule/sid/:sid' resource
0.054 2014-11-13 22:22 CET
- Parser.pm: make 'employee/self' and 'employee/self/priv' be synonyms for
'employee/current' and 'employee/current/priv', respectively
0.055 2014-11-14 10:06 CET
- Parser.pm: handle POST requests on 'employee/{current,self}'
0.056 2014-11-19 09:43 CET
- Parser.pm: let parser recognize '$method interval help' and '$method interval new'
0.057 2014-11-19 11:06 CET
- Parser.pm: handle more interval resources
0.058 2014-11-19 11:27 CET
- Build.PL: admit two important dependencies
0.059 2014-11-19 15:13 CET
- Parser.pm: handle 'interval/self/:tsrange' resource
0.060 2014-11-19 22:55 CET
- Parser.pm: Resources.pm no longer accepts non-hash JSON - adapt 'post docu'
and 'post docu html' to wrap argument in { "resource" : ... }
0.061 2014-11-20 13:59 CET
- Parser.pm: handle both 'metaparam' and 'metaparam/:param' after split
0.062 2014-11-20 18:14 CET
- Parser.pm: handle lock resources
0.063 2014-12-03 22:24 CET
- Parser.pm: support the new 'dbstatus' top-level resource
0.064 2014-12-10 09:07 CET
- Parser.pm: '/schedule/new' was missing - add it
0.065 2014-12-12 16:41 CET
- do battle with UTF-8 problem
0.066 2014-12-12 17:31 CET
- Parser.pm: handle 'interval/summary/?:qualifiers' resource
0.067 2014-12-30 18:32 CET
- add an '-n' option to disable authentication so we can use App::Dochazka::CLI
with Web::MREST
0.068 2014-12-30 21:22 CET
- HTTP.pm: change how we process the response body, to better handle various
scenarios
0.069 2014-12-31 16:07 CET
- HTTP.pm: include Web::Machine trace in our output
0.070 2014-12-31 22:58 CET
- Parser.pm: pass request entity (if any) on 'help' to the server
0.071 2015-01-05 15:59 CET
- HTTP.pm, bin/dochazka-cli: expose Location header and "real" HTTP status code
- Parser.pm: implement 'test/post_is_create/:bool'
0.072 2015-01-06 13:28 CET
- introduce DOCHAZKA_CLI_SUPPRESSED_HEADERS site param and including a listing
of all non-suppressed headers with each response
0.073 2015-01-10 08:30 CET
- Parser.pm: support bare 'test' URI path
0.074 2015-01-13 18:28 CET
- Parser.pm: adapt to new 'param/:type/:param' resource
0.075 2015-01-14 06:13 CET
- Parser.pm: enable 'docu/text' resource
0.076 2015-01-15 09:23 CET
- Parser.pm: 'docu/...' fix code for adding missing double-quotes; 'param/...'
do not attempt to add missing double quotes
0.077 2015-01-21 06:46 CET
- (CLI) HTTP.pm: make send_req die on error
0.078 2015-01-29 21:13 CET
- CLI: start migrating dochazka-cli to Web::MREST
0.079 2015-01-30 17:40 CET
- Parser.pm: separate 'employee/current' from 'employee/self'
0.080 2015-02-02 10:13 CET
- bin/dochazka-cli: tweak how responses are displayed
0.081 2015-02-02 11:16 CET
- Parser.pm: enable queries like ->get docu "foobar"<-
0.082 2015-02-02 15:22 CET
- bin/dochazka-cli: handle common failure scenarios "connection refused" and
"authentication failed" more gracefully
0.083 2015-02-05 07:52 CET
- Parser.pm: improve parsing of 'priv/history/eid/...' and 'priv/history/nick/...'
0.084 2015-02-06 06:08 CET
- Parser.pm: handle 0 arguments better in 'priv/...' resources
0.085 2015-02-07 11:26 CET
- Parser.pm: fix issue where timestamps were not getting appended properly
0.086 2015-02-11 13:52 CET
- Build.PL: require latest version of App::CELL
- Parser.pm: recognize root resource
0.087 2015-02-12 07:31 CET
- Parser.pm: support 'employee/search/...'
0.088 2015-02-16 08:23 CET
- Parser.pm: add fallback to 'employee/search' noop
0.089 2015-02-18 13:33 CET
- bin/dochazka-cli, Help.pm: add infrastructure for displaying help messages
- Parser.pm: add a 'SHOW' command
0.090 2015-02-18 13:51 CET
- Parser.pm: move all the HTTP testing stuff to a separate routine
0.091 2015-02-18 16:45 CET
- start implementing SHOW EMPLOYEE command
0.092 2015-02-18 17:57 CET
- CLI.pm: add exported storage for current date, employee object, privlevel
- Show.pm: use 'GET employee/eid/:eid' to get the profile, since we might
be "masquerading" as a different employee
0.093 2015-02-20 20:52 CET
- Show.pm: continue implementing SHOW EMPLOYEE [$KEY] - take an optional argument
and apply heuristics in the look-up: first try nick, then sec_id, then eid
(no point in forcing the user to specify which one is intended)
- Parser.pm: refinements; start to add support for SET EMPLOYEE
0.094 2015-02-21 15:59 CET
- bin/dochazka-cli: use normalize_filespec
- Show.pm: handle undefined search key
0.095 2015-02-23 20:58 CET
- add fields to SHOW EMPLOYEE output
0.096 2015-02-24 10:23 CET
- Show.pm: fix bug in SHOW EMPLOYEE heuristics
0.097 2015-02-24 17:53 CET
- refactor for better maintainability and prepare to implement Term::ReadLine
custom completer (WIP)
0.098 2015-03-02 15:28 CET
- refactoring in progress
0.098 2015-03-02 22:03 CET
- refactoring WIP
0.098 2015-03-03 14:36 CET
- bin/dochazka-cli: display the right error message when parser dies
unexpectedly
- CLI.pm: fix get_next_token, add debug messages to it
- Level0/, Level1/: get parser working
0.099 2015-03-03 18:21 CET
- implement --debug|-d option
0.100 2015-03-05 10:34 CET
- CLI.pm: refactor lexer, syntaxer routines
- t/parser/: start writing parser unit tests
0.101 2015-03-05 16:49 CET
- CLI.pm: new parser taking shape
- t/parser/: add unit tests
0.102 2015-03-05 18:07 CET
- MANIFEST: add CommandMap.pm; deprecate Level[012]/
- CLI.pm: parser refinements -- eliminate global variables
- TokenMap.pm: move look_up_token from CLI.pm
- t/parser/: adapt to current state
0.103 2015-03-05 21:41 CET
- CommandMap.pm: start work on dispatch table
- Command/Activity.pm: re-implement some activity-related commands
0.104 2015-03-06 07:32 CET
- CLI/Commands/Activity.pm: implement activity commands
- CLI/Commands/Top.pm: start implementing top-level commands
- CLI.pm: work on remainder routine; deprecate get_next_token
- CLI/CommandMap.pm: WIP
- t/parser/look_up_command.t: test look_up_command routine
- t/parser/remainder.t: test remainder routine
0.105 2015-03-06 14:02 CET
- CommandMap.pm: add entries for "top-level" commands
- Commands/Activity.pm: instead of dying with send_req, die with reference to
an array that can be passed to send_req later (for easier testing of each
command implementation)
- Commands/Top.pm: implement top-level commands
- t/parser/look_up_command.t: test all implemented commands in two foreach
loops -- with and without JSON string
0.106 2015-03-06 19:26 CET
- Commands/: make it so command target functions return an arrayref instead of
dying with one
- t/parser/look_up_command.t: adapt tests
0.107 2015-03-07 12:01 CET
- CommandMap.pm, Commands/: add $METHOD ACTIVITY and $METHOD EMPLOYEE
commands
0.108 2015-03-07 18:03 CET
- CLI.pm: yet another modification to the parser design
- t/parse.t: TDD on the new parser
0.109 2015-03-08 11:39 CET
- complete revamp of the semantic analysis (command recognition) part
(WIP)
0.110 2015-03-08 18:00 CET
- revamped possible_words to use auto-generated semantic tree
- get $METHOD commands to parse properly (WIP)
0.111 2015-03-08 21:24 CET
- various adjustments, t/parse.t now running cleanly
- NEXT: implement priv, schedule commands
0.112 2015-03-09 12:08 CET
- Commands/: implement priv and schedule commands
- TokenMap.pm: add _TIMESTAMP regex
- t/parse.t: add basic tests for all new commands
0.113 2015-03-09 16:22 CET
- TokenMap.pm: fix bug in _NUM regex (single digits not recognized as numbers)
- t/parse.t: add test case for single-digit _NUM
- bin/dochazka-cli: use the new routines (parse, look_up_command, etc.)
- CommandMap.pm: add EXIT
- Commands/Top.pm: fix bugs
0.114 2015-03-10 10:59 CET
- bin/dochazka-cli: adapt to new setup
- CLI.pm: now just a shell for storing package variables
- Parser.pm: move parser routines here from CLI.pm
- Commands/Show.pm: adapt to new setup
- remove Test::Deep dependency (K.I.S.S.)
0.115 2015-03-11 17:28 CET
- implement SHOW ACTIVITY . . . commands
- implement SET EMPLOYEE SEC_ID _TERM command
0.116 2015-03-13 06:12 CET
- HTTP.pm: delete deprecated module (using Web::MREST::CLI::UserAgent now)
- Util.pm: new module for reusable routines such as rest_error
- bin/dochazka-cli: fix two bugs
- CommandMap.pm, Commands/Set.pm: implement EMPLOYEE_SPEC SET SEC_ID _TERM
- Commands/Show.pm: use rest_error
- TokenMap.pm: regex tweaks
0.117 2015-03-13 20:30 CET
- implement SET EMPLOYEE FULLNAME and EMPLOYEE_SPEC SET FULLNAME
- minor cleanup
0.118 2015-03-18 17:55 CET
- bin/dochazka-cli, Parser.pm: make command processing testable
(process_command)
- Util.pm: fix bug in lookup_employee, make rest_error return a string
instead of printing directly to STDOUT
0.119 2015-03-19 10:13 CET
- bin/dochazka-cli, Util.pm: move "authenticate_to_server", "init_cli_client",
and "init_logger" from the startup script to Util.pm so we can call them from
the test suite
- t/commands/show.t: unit tests for "SHOW EMPLOYEE"
0.120 2015-03-19 21:17 CET
- Util.pm: make 'rest_error' return a status object with code 'DOCHAZKA_CLI_REST_ERROR'
- t/commands/show.t: add 'SHOW ACTIVITY ALL' unit that tests for this
0.121 2015-03-20 07:23 CET
- t/001-init.t: add "tests" that create users with inactive and active
privlevels idempotently
- t/cmd_active/: command tests as active user
- t/cmd_inactive/: command tests as inactive user
- t/cmd_admin/: command tests as admin user
- t/cmd_passerby/: command tests as passerby user
- bin/dochazka-cli: tweak how "authenticate_to_server" is called
- Commands/: standardize that normal completion of CLI commands will return
status object with level OK and code DOCHAZKA_CLI_NORMAL_COMPLETION
- Util.pm: make "authenticate_to_server" take a PROPLIST instead of positional
parameters
0.122 2015-03-21 13:47 CET
- Commands/RestTest/: move HTTP testing routines out of the way
- rearrange code to implement new command syntax
- adapt tests
0.123 2015-03-24 09:03 CET
- discovered a token-matching bug
0.124 2015-03-24 17:49 CET
- fix bugs introduced by last commit
0.125 2015-03-24 18:29 CET
- t/cmd_...: rearrange tests by new command categories (activity, employee,
etc.)
- Util.pm: in rest_error, derive the return status from the REST server's
return status
0.126 2015-03-24 21:35 CET
- Build.PL: make it look more like the Build.PL from App::Dochazka::REST
- t/cmd_...: add some very basic EMPLOYEE_SPEC tests
0.127 2015-03-25 07:05 CET
- t/cmd_..: make tests handle EIDs properly
0.128 2015-03-25 15:26 CET
- Parser.pm: make process_command distinguish REST test commands from normal
CLI commands and handle them accordingly
- return the real status and not some dumb DOCHAZKA_CLI_NORMAL_COMPLETION
- implement $METHOD employee search nick $SEARCH_KEY
0.129 2015-03-25 16:22 CET
- implement "GET schedule all" and "GET schedule all disabled" commands
0.130 2015-03-26 07:44 CET
- t/parse.t: add tests for newly supported rest_test commands
- came up with idea for building up new schedules in memory
- CommandMap.pm: add new SCHEDULE _DOW ... commands
- Parser.pm: add support for multiple instances of the same token within a
single command
- TokenMap.pm: add support for new _DOW and _TIME tokens
0.131 2015-03-27 08:58 CET
- Commands/Schedule.pm: basic infrastructure for building up a schedule in
memory for submission to the REST server
0.132 2015-03-27 21:33 CET
- add DUMP and MEMORY tokens
- add "SCHEDULE DUMP", "SCHEDULE MEMORY", and "SCHEDULE NEW" commands
- basic schedule-building and schedule-inserting functionality seems to work,
but no tests yet
0.133 2015-03-28 20:21 CET
- bin/dochazka-cli: improve reporting of non-OK statuses
- CommandMap.pm, RestTest/Schedule.pm, t/parse.t: add missing REST test command
"$METHOD SCHEDULE SID $NUMBER"
- Commands/Schedule.pm: do not push duplicate schedule entries into memsched
- TokenMap.pm: include an "ALL" day of week (meaning replicate this interval to
all five days MON-FRI)
0.134 2015-03-28 20:44 CET
- bin/dochazka-cli: further refine reporting of errors
- CLI_Message_en.conf: add an error message for when "schedule/new" is called
on empty memsched
- CommandMap.pm: add "SCHEDULE ALL _TIMERANGE" for accelerated schedule entry
in cases when the schedule for MON-FRI is the same on each day
- Commands/Schedule.pm: make sure there are memsched entries to begin with,
before sending REST call; implement "SCHEDULE ALL _TIMERANGE" command
0.135 2015-03-30 08:57 CEST
- implement "SCHEDULE CLEAR"
- Implement GET HOLIDAY $TSRANGE command
0.217 2015-08-16 23:23 CEST
- Implement INTERVAL FILLUP _TSRANGE command
- Commands/Interval.pm: temporary fix for _fillup_dry_run() exception
- CommandMap.pm: interval/fillup resources now take a tsrange instead of two dates
- t/parser/rest_test.t: interval/fillup resources take a tsrange now
- Add INTERVAL FETCH ... COMMIT commands
- Commands/Interval.pm: make handlers commit-aware
0.218 2015-12-11 12:13 CET
- t/cmd_active/employee.t: fix check for ACL_VIOLATION
- prerelease.sh: copy new prerelease script from REST
- global: do not convert warnings into errors
- tests: use Test::Warnings to check for unexpected warnings
- update release and prerelease scripts
0.219 2016-01-06 21:11 CET
- Guide.pm: tell how to look up individual schedules
- Commands/Interval.pm: be aware of partial intervals
- Commands/Interval.pm: get count from $status->{'count'}
- CommandMap.pm: fix INTERVAL DELETE
- plumb in INTERVAL SUMMARY commands
- bin/dochazka-cli: tweak how NON_OK error statuses are displayed
0.220 2016-01-09 22:14 CET
- COMPONENT PATH command: first draft (commented out for now)
- prerelease.sh: fix date template
- GENERATE REPORT: implement new command
0.221 2016-01-11 22:40 CET
- Build.PL: require latest version of App::Dochazka::Common
- INTERVAL REPORT: basic implementation
- INTERVAL REPORT: more advanced implementation
- bin/dochazka-cli: become aware of non-interactive usage
0.222 2016-01-12 00:41 CET
- MANIFEST.SKIP: avoid docker/ directory
- docker/: add Dockerization
- Testers.pm: a place to hold instructions for volunteer testers
- Testers.pm: first test is to meet the prerequisites
0.223 2016-01-12 15:26 CET
- Testers.pm: have them first login with demo/demo
- bin/dochazka-cli: show prompt/commands in non-interactive mode
- CLI/Testers.pm: add testing session 1
0.224 2016-01-14 13:10 CET
- Build.PL: require Web::MREST::CLI 0.279 for bugfixes
- bin/dochazka-cli: add rudimentary custom completion function
https://github.com/smithfarm/dochazka-cli/issues/27 Fixes: #27
- CLI/Guide.pm: remove VERSION
0.225 2016-01-14 17:19 CET
- bin/dochazka-cli: tell JSON to not decode UTF-8
https://github.com/smithfarm/dochazka-cli/issues/24 Fixes: #24
0.226 2016-01-14 19:54 CET
- Build.PL: require Web::MREST::CLI 0.280 for UTF-8 bugfix
- Testers.pm: in PREREQUISITES describe non-Docker way
0.227 2016-01-14 20:16 CET
- Revert "Drop VERSION from CLI/Guide.pm"
0.228 2016-01-15 00:50 CET
- tests:
- t/cmd_admin/employee.t: improve debuggability (log to file, etc.)
- t/cmd_admin/employee-utf8.t: new test
- bin/dochazka-cli: beginnings of tab completion
0.229 2016-01-15 22:25 CET
- Extend copyright into 2016
- tab completion:
- TokenMap.pm: rename $regex_map -> $token_map, add $completion_map
- Completion.pm: working custom completion
- custom completion: fix various issues
- CommandMap: add some noop commands to fix tab completion
0.230 2016-01-16 20:35 CET
- tab completion:
- fix some minor glitches
- add tab completion tests
- drop a senseless dependency
- CLI/Testers.pm: clarify PREREQUISITES
0.231 2016-01-25 23:25 CET
- release.sh: save some typing by automating version number to OBS
- bin/dochazka-cli: make debug-level log messages visible in log
- Util.pm: put datelist helper functions in Util.pm
- Util.pm: stabilize and test datelist_from_token()
- TokenMap.pm: add _DATELIST (for use with INTERVAL FILLUP)
- CommandMap.pm: adapt FILLUP commands to redesigned REST resource
- Refactor INTERVAL FILLUP commands
- Commands/Interval.pm: basic INTERVAL FILLUP functionality
0.232 2016-01-26 07:47 CET
- Util.pm: use debug log level
- t/util/datelist.t: cleanup, initialize logger
0.233 2016-01-30 23:45 CET
- Remove INTERVAL FILLUP DATELIST ambiguity
- Commands/Interval.pm: expand statistics reported by INTERVAL FILLUP
- simplify INTERVAL FILLUP command syntax by removing _MONTH
- bin/dochazka-cli: drop annoying "Payload: undef" from output of certain commands
- Completion.pm: eliminate tab completion warning
- pod (Testers.pm): add sessions 2, 3, 4, and 5
0.234 2016-02-01 00:42 CET
- Testers.pm: add subsection headings in session 5
- bin/dochazka-cli: use Dumper to display non-scalar payloads
0.235 2016-02-02 10:39 CET
- Testers.pm: rewrite database initialization step
- Testers.pm: tell users to start the server; work on session 6
0.236 2016-02-04 11:17 CET
- doc: Guide.pm: fix activity disable/re-enable examples
- Testers.pm: finish session 6, start session 7
- Util.pm->normalize_date(): check sanity of resulting date
- Commands/Interval.pm: remove confusing partial interval message
0.237 2016-09-04 20:12 CEST
- Parser.pm: provide better parser state dumps in debug mode
- RestTest: implement GET configinfo
- Util.pm: report logfile location to user at startup
- Saner sitedir handling
( run in 1.407 second using v1.01-cache-2.11-cpan-49f99fa48dc )