From f7bde8ef2efa5e2f037551695439cb0bf1da72a0 Mon Sep 17 00:00:00 2001 From: Asai Neko Date: Thu, 29 Jan 2026 01:00:51 +0800 Subject: [PATCH] Mod justfile to auto swag init when go files changed Signed-off-by: Asai Neko --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index 79e84cf..17040f5 100644 --- a/justfile +++ b/justfile @@ -39,7 +39,7 @@ gen-back: cd {{ project_dir }} && go generate . watch-back: - watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'go build -o {{ server_exec_path }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}' + watchexec -r -e go,yaml,tpl -i '.devenv/**' -i '.direnv/**' -i 'client/**' -i 'vendor/**' 'swag init && go build -o {{ server_exec_path }} . && cd {{ output_dir }} && CONFIG_PATH={{ output_dir }} {{ server_exec_path }}' dev: clean install generate devenv up --verbose