stash/internal/manager
Csaba Maulis 0c0ba19a23
Add `-v/--version` flag to print version string (#3883)
* Add `-v/--version` flag to print version string

- Created a new flag `-v/--version` in the command-line interface to display the version number and exit.
- Moved all version-related functions inside the config package to the new file `manager/config/version.go` to avoid circular dependencies.
- Added a new `GetVersionString()` function to generate a formatted version string.
- Updated references to the moved version functions.
- Updated references in the `Makefile`.

* Move version embeds to build package

* Remove githash var

---------

Co-authored-by: WithoutPants <53250216+WithoutPants@users.noreply.github.com>
2023-07-11 15:54:42 +10:00
..
config Add `-v/--version` flag to print version string (#3883) 2023-07-11 15:54:42 +10:00
task Add filesystem based blob storage (#3187) 2023-03-17 10:52:49 +11:00
apikey.go Revert "Upgrade to go 1.19 and update dependencies (#3069)" (#3085) 2022-11-07 12:33:15 +11:00
checksum.go Only set video algorithm after migration 12 (#2946) 2022-09-26 11:27:53 +10:00
downloads.go Improve caching, HTTP headers and URL handling (#3594) 2023-04-19 13:01:32 +10:00
exclude_files.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
exclude_files_test.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
filename_parser.go Stash rating system (#2830) 2022-11-16 09:31:44 +11:00
fingerprint.go Support image clips/gifs (#3583) 2023-05-17 09:30:51 +10:00
generator.go Fix a few cases where ffmpeg produces no output (#3161) 2022-11-21 17:21:27 +11:00
generator_interactive_heatmap_speed.go Allow serving of interactive CSVs directly to Handy (#3756) 2023-07-11 14:02:09 +10:00
generator_sprite.go Allow configuration of ffmpeg args (#3216) 2023-01-27 11:31:11 +11:00
import.go Fix export zip paths when exporting from Windows (#3022) 2022-10-20 11:41:46 +11:00
import_file.go Fix stack overflow creating windows network folders (#2886) 2022-09-06 07:04:52 +00:00
json_utils.go [Files Refactor] Import export fixup (#2763) 2022-09-06 07:04:52 +00:00
log.go Restructure ffmpeg (#2392) 2022-04-18 10:50:10 +10:00
manager.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
manager_tasks.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
repository.go Update gallery UpdatedAt timestamp on contents change (#3771) 2023-05-31 11:06:01 +10:00
running_streams.go Improve caching, HTTP headers and URL handling (#3594) 2023-04-19 13:01:32 +10:00
scene.go Support image clips/gifs (#3583) 2023-05-17 09:30:51 +10:00
studio.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
subscribe.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
task.go Restructure go project (#2356) 2022-03-17 11:33:59 +11:00
task_autotag.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_clean.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_export.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_generate.go Support image clips/gifs (#3583) 2023-05-17 09:30:51 +10:00
task_generate_clip_preview.go Clip Preview Generation Fix (#3764) 2023-05-25 11:42:02 +10:00
task_generate_interactive_heatmap_speed.go Fix generate task override behaviour (#3661) 2023-05-03 13:42:25 +10:00
task_generate_markers.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_generate_phash.go Fix generate task override behaviour (#3661) 2023-05-03 13:42:25 +10:00
task_generate_preview.go Fix generate task override behaviour (#3661) 2023-05-03 13:42:25 +10:00
task_generate_screenshot.go Format 2023-05-04 14:23:23 +10:00
task_generate_sprite.go Fix generate task override behaviour (#3661) 2023-05-03 13:42:25 +10:00
task_identify.go Identify: Options to skip multiple results and single name performers (#3707) 2023-07-11 14:37:00 +10:00
task_import.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_migrate_hash.go [Files Refactor] Performance tuning (#2865) 2022-09-06 07:04:52 +00:00
task_plugin.go Separate graphql API from rest of the system (#2503) 2022-09-06 07:03:40 +00:00
task_scan.go Support image clips/gifs (#3583) 2023-05-17 09:30:51 +10:00
task_stash_box_tag.go SQLite model refactoring (#3791) 2023-06-15 12:46:09 +10:00
task_transcode.go Fix generate task override behaviour (#3661) 2023-05-03 13:42:25 +10:00