github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/cmd/wsctl/main.go (about) 1 package main 2 3 import ( 4 "os" 5 6 "github.com/machinefi/w3bstream/pkg/depends/conf/log" 7 "github.com/machinefi/w3bstream/pkg/wsctl/client" 8 "github.com/machinefi/w3bstream/pkg/wsctl/cmd" 9 "github.com/machinefi/w3bstream/pkg/wsctl/cmd/config" 10 ) 11 12 func main() { 13 logger := log.Std() 14 15 readConfig, defaultConfigFile, err := config.InitConfig() 16 if err != nil { 17 logger.Panic(err) 18 } 19 client := client.NewClient(readConfig, defaultConfigFile, logger) 20 if err := cmd.NewWsctl(client).Execute(); err != nil { 21 os.Exit(1) 22 } 23 }