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
Lance Edgar
329d051d76
Assign extra import handler kwargs before loading the importers
...
e.g. for CORE importers which can target different DB and therefore
the set of importers must vary by DB
2024-05-08 13:35:06 -05:00
Lance Edgar
033a0c27ec
Fallback to zero if receiving row has no invoice total calculated
...
not sure when/why this is happening yet..
2024-05-07 12:57:15 -05:00
Lance Edgar
d7067aefb6
Update changelog
2024-05-06 20:30:24 -05:00
Lance Edgar
b16106a11a
Define __all__ for rattail.trainwreck.db.model.defaults module
...
i.e. so custom projects can do this if needed:
from rattail.trainwreck.db.model.defaults import *
2024-05-06 20:29:30 -05:00
Lance Edgar
a65c11070c
Cleanup alembic scripts for trainwreck
...
per conventions used in rattail proper
2024-05-06 20:29:27 -05:00
Lance Edgar
2fcd8cb6dc
Do not assign AppHandler.enum in constructor
...
the app handler is created before config extensions are applied, and
the latter may determine which enum module should be used. so
use a property to fetch on-demand instead of assigning it so early
2024-04-30 19:42:58 -05:00
Lance Edgar
93f2f350b1
Update changelog
2024-04-28 17:28:26 -05:00
Lance Edgar
0349878c6d
Cleanup dependencies a bit
2024-04-19 20:38:18 -05:00
Lance Edgar
2469cac2e3
Update changelog
2024-04-19 19:46:32 -05:00
Lance Edgar
82df448ca0
Fix various tests per config changes
2024-04-19 18:12:56 -05:00
Lance Edgar
3c87fdac39
Fix main config class name
2024-04-19 18:00:30 -05:00
Lance Edgar
633b22270a
Remove unused config classes; now just RattailConfig based on wutta
2024-04-19 17:42:11 -05:00
Lance Edgar
58a9c01108
Avoid null case size, for ordering batch rows
...
pretty sure some could split thru rarely..somehow..??
2024-04-16 19:44:13 -05:00