@@ -21,28 +21,28 @@ import (
2121 "github.com/aws/aws-sdk-go/aws/session"
2222 "github.com/aws/aws-sdk-go/service/ivs"
2323 "github.com/hypebeast/go-osc/osc"
24+ "github.com/muesli/coral"
2425 "github.com/rs/zerolog/log"
25- "github.com/spf13/cobra"
2626 "github.com/spf13/viper"
2727)
2828
29- var ivsOscBridgeCmd = & cobra .Command {
29+ var ivsOscBridgeCmd = & coral .Command {
3030 Use : "ivs-bridge <ivs-stream-arn>" ,
3131 Short : "Connect OSC commands to IVS PutMetadata." ,
3232 Long : `Use OSC to send messages to IVS using PutMetadata API.` ,
3333 Run : ivsOscBridge ,
34- Args : cobra .ExactArgs (1 ),
34+ Args : coral .ExactArgs (1 ),
3535}
3636
37- var ivsPutMetadataCmd = & cobra .Command {
37+ var ivsPutMetadataCmd = & coral .Command {
3838 Use : "ivs-put <ivs-stream-arn> <data payload>" ,
3939 Short : "Send payload to IVS PutMetadata." ,
4040 Long : `Send messages to IVS using PutMetadata API.` ,
4141 Run : ivsPutMetadata ,
42- Args : cobra .ExactArgs (2 ), //nolint:gomnd // this is an appropriate magic number
42+ Args : coral .ExactArgs (2 ), //nolint:gomnd // this is an appropriate magic number
4343}
4444
45- func ivsOscBridge (cmd * cobra .Command , args []string ) {
45+ func ivsOscBridge (cmd * coral .Command , args []string ) {
4646 arn := args [0 ]
4747 addr := "127.0.0.1:" + viper .GetString ("ivs_port" )
4848
@@ -76,7 +76,7 @@ func ivsOscBridge(cmd *cobra.Command, args []string) {
7676 }
7777}
7878
79- func ivsPutMetadata (cmd * cobra .Command , args []string ) {
79+ func ivsPutMetadata (cmd * coral .Command , args []string ) {
8080 arn := args [0 ]
8181 data := args [1 ]
8282
0 commit comments