( cmd *cobra.Command, flags *networkSubscriptionFlags, withKeywords bool, )
| 1093 | } |
| 1094 | |
| 1095 | func registerNetworkSubscriptionMutationFlags( |
| 1096 | cmd *cobra.Command, |
| 1097 | flags *networkSubscriptionFlags, |
| 1098 | withKeywords bool, |
| 1099 | ) { |
| 1100 | cmd.Flags().StringVar(&flags.channel, networkChannelKey, "", "Target channel") |
| 1101 | cmd.Flags().StringVar(&flags.threadID, networkSurfaceThread, "", "Optional thread id") |
| 1102 | cmd.Flags().StringVar(&flags.peerID, "peer", "", "Target peer id") |
| 1103 | if withKeywords { |
| 1104 | cmd.Flags().StringArrayVar( |
| 1105 | &flags.keywordFilters, |
| 1106 | "keyword", |
| 1107 | nil, |
| 1108 | "Keyword filter for this preference (repeatable)", |
| 1109 | ) |
| 1110 | } |
| 1111 | mustMarkFlagRequired(cmd, networkChannelKey) |
| 1112 | mustMarkFlagRequired(cmd, "peer") |
| 1113 | } |
| 1114 | |
| 1115 | func networkStatusBundle(status NetworkStatusRecord) outputBundle { |
| 1116 | rows := []keyValue{ |
no test coverage detected