Philipp Wolfer
adfe3f5771
Use the transfer context also for the progress bars
2025-05-22 11:51:52 +02:00
Philipp Wolfer
3b545a0fd6
Prepare using a context for export / import
...
This will allow cancelling the export if the import fails
before the export finished.
For now the context isn't passed on to the actual export functions,
hence there is not yet any cancellation happening.
2025-05-22 11:51:51 +02:00
Philipp Wolfer
a87c42059f
Use a WaitGroup to wait for both export and import goroutine to finish
2025-05-05 17:49:44 +02:00
Philipp Wolfer
17cee9cb8b
For import progress show actually processed and total count
2025-05-05 17:39:47 +02:00
Philipp Wolfer
b8e6ccffdb
Initial implementation of unified export/import progress
...
Both export and import progress get updated over a unified channel.
Most importantly this allows updating the import total from latest
export results.
2025-05-05 11:38:29 +02:00
Philipp Wolfer
1f48abc284
Fixed timestamp displayed after import not being the updated one
2025-05-04 15:18:14 +02:00
Philipp Wolfer
05f0e8d172
Change string for aborted progress bar
2025-05-04 13:24:12 +02:00
Philipp Wolfer
aae5123c3d
Show progress bars as aborted on export / import error
2025-05-04 13:06:48 +02:00
Philipp Wolfer
55ac41b147
If import fails still save the last reported timestamp
...
This allows continuing a partially failed import run.
2025-05-04 11:53:46 +02:00
Philipp Wolfer
9480c69cbb
Handle wait group for progress bar centrally
...
This does not need to be exposed and caller only
needs to wait for the Progress instance.
2025-05-04 11:53:35 +02:00
Philipp Wolfer
c305b6c7e3
Simplify timestamp comparisons
2025-05-01 12:27:24 +02:00
Philipp Wolfer
a5442b477e
Sync translations with new strings
2025-04-29 16:06:13 +02:00
Philipp Wolfer
d51c97c648
Code style: All uppercase acronyms URL, ISRC, ID, HTTP
2025-04-29 13:23:41 +02:00
Philipp Wolfer
c69097434c
Update dependencies
2024-01-15 08:41:50 +01:00
Philipp Wolfer
84443d0e69
Close export progress in export goroutine
...
Fixes crash in case of importer exiting prematurely
2024-01-15 08:21:38 +01:00
Philipp Wolfer
8a2ddb7772
Replaced ImportResult.ImportErrors with ImportResult.ImportLog
2024-01-15 08:00:17 +01:00
Philipp Wolfer
01380bd730
listenbrainz: localize duplicate listen message
2024-01-14 22:09:12 +01:00
Philipp Wolfer
97e93553a1
Support integer config values
2024-01-13 14:11:58 +01:00
Philipp Wolfer
be1cfdac9e
allow datetime string as --timestamp parameter
2023-12-10 16:15:09 +01:00
Philipp Wolfer
c4587b80af
Introduce models.Entity type
2023-12-10 14:24:06 +01:00
Philipp Wolfer
a59a542967
moved OAuth2Authenticator to auth package
2023-12-10 14:19:23 +01:00
Philipp Wolfer
c4193f42a1
Code cleanup and missing error checks
2023-12-10 13:51:38 +01:00
Philipp Wolfer
ab0e50f7aa
Prompt user for auth after service requireing auth added
2023-12-09 23:17:43 +01:00
Philipp Wolfer
9449a29fb1
service auth, edit and delete now all support --service flag
...
If a service name is given, this will be used. If not the user is
prompted to select one.
2023-12-09 23:16:33 +01:00
Philipp Wolfer
5755ccef01
Do not apply locale formatting to Unix timestamps
2023-12-09 22:39:08 +01:00
Philipp Wolfer
1698568d0e
Fixed crash with invalid target config name in beam commands
2023-12-09 22:29:15 +01:00
Philipp Wolfer
76fd7cfeb4
Allow default value for boolean select
...
Default for both service delete conformation and disabling Maloja
autofix is now "no".
2023-12-09 22:15:40 +01:00
Philipp Wolfer
e7d596b4e0
Allow specifying --timestamp 0
2023-12-09 18:56:23 +01:00
Philipp Wolfer
2307e6247b
Even on error the last import timestamp should be set to the previous timestamp
2023-12-09 18:41:53 +01:00
Philipp Wolfer
d6ca8d33f7
Mark user interface strings
...
For now exclude command help, as cobra itself is not localizable yet.
2023-12-09 16:43:14 +01:00
Philipp Wolfer
1f3247c3ff
Translate progress bar
2023-12-09 12:01:04 +01:00
Philipp Wolfer
a41318d822
Basic i18n setup
2023-12-09 11:46:32 +01:00
Philipp Wolfer
20f1732858
Use positional arguments for source and target in beam commands
2023-12-08 17:59:37 +01:00
Philipp Wolfer
543a9c666d
Implemented service delete command
2023-12-08 17:27:32 +01:00
Philipp Wolfer
58a47a43e7
Implemented service edit command
2023-12-08 08:38:17 +01:00
Philipp Wolfer
9c363cc06d
Use config.ServiceConfig across API
2023-12-07 23:55:20 +01:00
Philipp Wolfer
8743a9d81c
Moved prompt helpers into cli package
2023-12-07 22:32:08 +01:00
Philipp Wolfer
ce5cdceb1f
Initialize config if it does not exist, set database relative to config dir
2023-12-07 22:20:27 +01:00
Philipp Wolfer
a9e07915ce
Transfer command refactoring
...
Make transfer command processing even more modular
2023-12-05 08:24:42 +01:00