fix(cmd): export variables for test accessibility

Export rootCmd->RootCmd and appVersion->AppVersion to fix test compilation errors. Update all references across cmd package and tests.
This commit is contained in:
2025-09-10 11:07:11 +02:00
parent 9bb44da18b
commit aa6be1d92d
9 changed files with 61 additions and 57 deletions

View File

@@ -235,7 +235,7 @@ func escapeJSON(s string) string {
func init() {
// Add search command to root
rootCmd.AddCommand(searchCmd)
RootCmd.AddCommand(searchCmd)
// Add flags
searchCmd.Flags().StringVarP(&outputFormat, "format", "f", "table", "Output format (table, json, simple)")