diff --git a/internal/cmd/publish/main.go b/internal/cmd/publish/main.go index 47f9edc..183307a 100644 --- a/internal/cmd/publish/main.go +++ b/internal/cmd/publish/main.go @@ -8,11 +8,16 @@ import ( ) const ( - TopicFlag = "topic" - QoSFlag = "qos" + // TopicFlag used with cobra to read the topic flag from user. + TopicFlag = "topic" + // QoSFlag used with cobra to read the qos flag from user. + QoSFlag = "qos" + // RetainedFlag used with cobra to read the retained flag from user. RetainedFlag = "retained" - PayloadFlag = "payload" + // PayloadFlag used with cobra to read the payload flag from user. + PayloadFlag = "payload" + // Timeout for disconnecting from brokers. Timeout = 10 ) diff --git a/internal/cmd/subscribe/main.go b/internal/cmd/subscribe/main.go index 86b5ec7..d065df9 100644 --- a/internal/cmd/subscribe/main.go +++ b/internal/cmd/subscribe/main.go @@ -12,9 +12,12 @@ import ( ) const ( + // TopicFlag used with cobra to read the topic flag from user. TopicFlag = "topic" - QoSFlag = "qos" + // QoSFlag used with cobra to read the qos flag from user. + QoSFlag = "qos" + // Timeout for disconnecting from brokers. Timeout = 10 )