Commit graph

3860 commits

Author SHA1 Message Date
Lance Edgar 398e4febf9 Fix params for generic "run purge" command logic, per typer 2024-05-31 08:44:50 -05:00
Lance Edgar 8467504e01 Update changelog 2024-05-31 08:28:06 -05:00
Lance Edgar a6920534b2 Fix args for rattail purge-batches command, per typer 2024-05-31 08:27:27 -05:00
Lance Edgar 7456237f7b Update changelog 2024-05-30 11:09:29 -05:00
Lance Edgar 3b04c1ba7c Do not require mail log file to be readable for current user 2024-05-30 09:57:27 -05:00
Lance Edgar 3c35fd3ad9 Make sure mail log file exists, for rattail postfix-summary 2024-05-30 09:53:15 -05:00
Lance Edgar 6e84c582bc Log the pflogsumm command before running it
for help with troubleshooting
2024-05-30 09:49:04 -05:00
Lance Edgar c4ad0688f1 Fix typo for rattail postfix-summary command 2024-05-30 09:42:22 -05:00
Lance Edgar 481701e884 Add --dry-run flag for rattail version-check
whoops not sure why that got missed
2024-05-30 09:19:38 -05:00
Lance Edgar fd0f9c41f4 Update changelog 2024-05-29 22:13:35 -05:00
Lance Edgar c52839455b Include organic flag when normalizing product 2024-05-29 15:43:24 -05:00
Lance Edgar 27f4a1c1c9 Update changelog 2024-05-29 09:38:50 -05:00
Lance Edgar d3f58710f3 Fallback to null if include/exclude not specified in backup command
otherwise empty set is passed and prevents config values from being used
2024-05-29 07:58:19 -05:00
Lance Edgar c1d1bcc508 Fix typo in rattail overnight command 2024-05-29 06:13:18 -05:00
Lance Edgar fb52e52beb Bump version for wuttjamaican lib
need the latest
2024-05-28 23:00:00 -05:00
Lance Edgar c3287a6799 Fix docs for rattail make-appdir command
per typer
2024-05-28 21:43:51 -05:00
Lance Edgar 6c9341d671 Fix broken test for trainwreck handler
but not sure exactly why it broke, or this fixes..shrug
2024-05-28 21:34:41 -05:00
Lance Edgar c48796dcc1 Whoops can't remove subcommand entry points just yet
need these just in case we have to revert in emergency etc.
2024-05-28 21:28:32 -05:00
Lance Edgar efbc97727b Add command logic functions for running reports, purging things
for use with typer commands
2024-05-28 21:13:33 -05:00
Lance Edgar a81a4b99d8 Make the final switch to use typer for rattail commands 2024-05-28 16:09:14 -05:00
Lance Edgar 40985a7bcd Fix verbose param for rsync backup 2024-05-28 10:13:59 -05:00
Lance Edgar d47198bc60 Fix typo for telemetry 2024-05-17 09:22:39 -05:00
Lance Edgar 4bcdfcaae9 Fix typo in backup handler 2024-05-17 09:11:07 -05:00
Lance Edgar 36aa8ef708 Add typer command discovery for rattail-cli 2024-05-16 19:12:41 -05:00
Lance Edgar 48313f5ed2 Remove broken tests
since they didn't test anything meaningful..
2024-05-16 18:21:03 -05:00
Lance Edgar 58cae6c435 Add all rattail-cli commands using typer
these will "soon" be wired up as `rattail` but one thing at a time
2024-05-16 17:42:52 -05:00
Lance Edgar 923c07f919 Fix datetime type bug for importer commands 2024-05-16 09:54:57 -05:00
Lance Edgar 70a107a84c Revert "Fix broken test"
This reverts commit b6d06fabd8.
2024-05-16 09:44:20 -05:00
Lance Edgar 0bc5f2aa21 Fix another bug with import handler kwargs via command line 2024-05-16 09:36:38 -05:00
Lance Edgar 3529f272f1 Fix handler kwargs when running importer command 2024-05-16 09:05:34 -05:00
Lance Edgar 5ee6a19319 Migrate the trainwreck commands to use typer 2024-05-15 20:48:06 -05:00
Lance Edgar 4e90cee601 Fix start/end date params for importer commands
do not want datetime for those
2024-05-15 20:21:25 -05:00
Lance Edgar 81c77dd921 Migrate the rattail-dev commands to use typer 2024-05-15 17:52:47 -05:00
Lance Edgar c75651ce92 Check for rich, prompt toolkit first thing, during install 2024-05-15 17:12:20 -05:00
Lance Edgar dd88d51e2d Allow override of image URLs in install handler 2024-05-15 15:58:39 -05:00
Lance Edgar 9499348502 Add required kwarg for AppHandler.get_runas_user()
false by default, so no error unless caller wants one
2024-05-15 15:35:09 -05:00
Lance Edgar c2b0cacbec Add basic support for typer command system
only using this for derivative projects so far..proper rattail
commands will be migrated last probably
2024-05-15 15:35:06 -05:00
Lance Edgar 91200fe7a5 Fix bug for AppHandler.get_runas_user() 2024-05-15 14:35:16 -05:00
Lance Edgar f724b54dde Do not run wuttjamaican from source, for tox tests 2024-05-15 14:32:00 -05:00
Lance Edgar f0d3f1bdf7 Require latest wuttjamaican
since tox doesn't want to fetch latest available, must force it here
2024-05-15 14:29:46 -05:00
Lance Edgar 8805f23806 Move "import command runner" logic to separate handler
to allow for other command systems to invoke same logic
2024-05-15 13:23:09 -05:00
Lance Edgar dbd32eb948 Fix subcommand runas user when caller provides username 2024-05-15 12:28:23 -05:00
Lance Edgar b6d06fabd8 Fix broken test 2024-05-15 11:17:58 -05:00
Lance Edgar 1577f07682 Move "install" command logic to separate handler/module 2024-05-15 00:42:42 -05:00
Lance Edgar ae4bea8088 Move finalize_session() function to db.util module
and delegate to that, from similar Subcommand method

for sake of sharing logic with other contexts
2024-05-14 17:57:39 -05:00
Lance Edgar f1c43eddee Move rich and prompt_toolkit things to separate module
for use outside of classic subcommand context
2024-05-14 17:33:05 -05:00
Lance Edgar 304cec1b05 Add get_runas_user() method for AppHandler
and delegate to that, within similar Subcommand method

this is part of an effort to incorporate the `typer` lib as a
replacement for rattail "native" command framework
2024-05-14 15:55:44 -05:00
Lance Edgar 505037e464 Update changelog 2024-05-12 17:40:23 -05:00
Lance Edgar 3f1d8a5415 Remove the RattailConfigWrapper class
just using `RattailConfig` directly now
2024-05-12 17:33:08 -05:00
Lance Edgar ad643caceb Add AppHandler.maxval() convenience method
for sake of Numeric DB columns
2024-05-09 21:34:41 -05:00