@@ -12,6 +12,7 @@ import (
1212 "github.com/twitchdev/twitch-cli/internal/events"
1313 "github.com/twitchdev/twitch-cli/internal/events/mock_wss_server"
1414 "github.com/twitchdev/twitch-cli/internal/events/trigger"
15+ "github.com/twitchdev/twitch-cli/internal/events/types"
1516 "github.com/twitchdev/twitch-cli/internal/events/verify"
1617 "github.com/twitchdev/twitch-cli/internal/util"
1718)
@@ -54,9 +55,9 @@ var triggerCmd = &cobra.Command{
5455 Short : "Creates mock events that can be forwarded to a local webserver for event testing." ,
5556 Long : fmt .Sprintf (`Creates mock events that can be forwarded to a local webserver for event testing.
5657 Supported:
57- %s` , events . ValidTriggers ()),
58+ %s` , types . AllEventTopics ()),
5859 Args : cobra .MaximumNArgs (1 ),
59- ValidArgs : events . ValidTriggers (),
60+ ValidArgs : types . AllEventTopics (),
6061 Run : triggerCmdRun ,
6162 Example : `twitch event trigger subscribe` ,
6263 Aliases : []string {
@@ -69,9 +70,9 @@ var verifyCmd = &cobra.Command{
6970 Short : "Mocks the subscription verification event. Can be forwarded to a local webserver for testing." ,
7071 Long : fmt .Sprintf (`Mocks the subscription verification event that can be forwarded to a local webserver for testing.
7172 Supported:
72- %s` , events . ValidTriggers ()),
73+ %s` , types . AllEventTopics ()),
7374 Args : cobra .MaximumNArgs (1 ),
74- ValidArgs : events . ValidTriggers (),
75+ ValidArgs : types . AllEventTopics (),
7576 Run : verifyCmdRun ,
7677 Example : `twitch event verify-subscription subscribe` ,
7778 Aliases : []string {
0 commit comments