You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Convert TUI server to static site generator (#437)
* feat: Convert TUI server to static site generator
* fix: ensure TUI static generator is backward compatible
- Stop skipping empty fields in .gho output
- Generate field-specific .gho and .json files using both json tag and struct field name
* fix: return error on invalid config in loadAllVariations
* fix: ignore empty json tags in writeGHO and update prod-variations config
---------
Co-authored-by: Leonid Bugaev <leonsbox@gmail.com>
generateTuiCmd.Flags().String("out-dir", "public", "Output directory for static files")
278
273
279
274
matchSubCmd.Flags().String("config", "$HOME/.docker/config.json", "Config file to read authentication token from")
280
275
matchSubCmd.Flags().String("repos", "tyk-ee,tyk-analytics,tyk-pump,tyk-sink", "Config file to read authentication token from")
@@ -284,7 +279,7 @@ func init() {
284
279
policyCmd.AddCommand(controllerSubCmd)
285
280
policyCmd.AddCommand(diffSubCmd)
286
281
policyCmd.AddCommand(genSubCmd)
287
-
policyCmd.AddCommand(serveSubCmd)
282
+
policyCmd.AddCommand(generateTuiCmd)
288
283
289
284
policyCmd.PersistentFlags().StringVar(&polBranch, "branch", "", "Restrict operations to this branch, if not set all branches defined int he config will be processed.")
290
285
policyCmd.PersistentFlags().Bool("auto", true, "Will automerge if all requirements are meet")
0 commit comments