MCPcopy Create free account
hub / github.com/compozy/agh / registerNetworkSubscriptionMutationFlags

Function registerNetworkSubscriptionMutationFlags

internal/cli/network.go:1095–1113  ·  view source on GitHub ↗
(
	cmd *cobra.Command,
	flags *networkSubscriptionFlags,
	withKeywords bool,
)

Source from the content-addressed store, hash-verified

1093}
1094
1095func 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
1115func networkStatusBundle(status NetworkStatusRecord) outputBundle {
1116 rows := []keyValue{

Callers 2

newNetworkUnmuteCommandFunction · 0.85

Calls 1

mustMarkFlagRequiredFunction · 0.85

Tested by

no test coverage detected