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
// rootCmd.Flags().StringVarP(&namespace, "namespace", "n", "", "namespace to make a snapshot of (if not specified collects events from all namespaces)")
55
-
// rootCmd.Flags().StringVarP(&outputFile, "outputFile", "o", "", "name of a result output file (if not specified produces file with name meshery-cluster-snapshot-YYYYMMDD-NN.yaml)")
56
-
rootCmd.Flags().DurationVarP(&duration, "duration", "d", 8*time.Second, "duration of event collection")
52
+
rootCmd.Flags().StringVarP(
53
+
&outputFile, "file", "f", "",
54
+
"Name of the output file.\nIf not specified, the file will be named: meshery-cluster-snapshot-YYYYMMDD-NN.yaml",
55
+
)
56
+
57
+
rootCmd.Flags().DurationVarP(
58
+
&duration, "duration", "d", 8*time.Second,
59
+
"Duration of event collection (e.g., 8ss, 12s, 1m)",
60
+
)
61
+
62
+
rootCmd.Flags().StringSliceVarP(
63
+
&resources, "resources", "r", []string{},
64
+
"Comma-separated list of Kubernetes resources to snapshot (case-insensitive).\nFor example: \"pod,deployment,service\"",
65
+
)
66
+
67
+
rootCmd.Flags().StringSliceVarP(
68
+
&namespaces, "namespace", "n", []string{},
69
+
"One or more namespaces to restrict the snapshot to.\nFor example: \"default,agile-otter\"\nIf not specified, events will be collected from all namespaces",
0 commit comments