File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- 0.1.2
1
+ 0.1.3
Original file line number Diff line number Diff line change @@ -44,11 +44,12 @@ var campaignListCmd = &cobra.Command{
44
44
ctx := context .Background ()
45
45
46
46
// Fetch all campaigns from the API
47
- campaigns , err := vapiClient .GetClient ().Campaigns .CampaignControllerFindAll (ctx , & vapi.CampaignControllerFindAllRequest {})
47
+ campaignsResponse , err := vapiClient .GetClient ().Campaigns .CampaignControllerFindAll (ctx , & vapi.CampaignControllerFindAllRequest {})
48
48
if err != nil {
49
49
return fmt .Errorf ("failed to list campaigns: %w" , err )
50
50
}
51
51
52
+ campaigns := campaignsResponse .Results
52
53
if len (campaigns ) == 0 {
53
54
fmt .Println ("No campaigns found. Create one with 'vapi campaign create'" )
54
55
return nil
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ go 1.24.4
4
4
5
5
require (
6
6
github.com/AlecAivazis/survey/v2 v2.3.7
7
- github.com/VapiAI/server-sdk-go v0.8.1
7
+ github.com/VapiAI/server-sdk-go v0.9.0
8
8
github.com/charmbracelet/lipgloss v1.1.0
9
9
github.com/posthog/posthog-go v1.5.12
10
10
github.com/spf13/cobra v1.9.1
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ github.com/AlecAivazis/survey/v2 v2.3.7 h1:6I/u8FvytdGsgonrYsVn2t8t4QiRnh6QSTqkk
2
2
github.com/AlecAivazis/survey/v2 v2.3.7 /go.mod h1:xUTIdE4KCOIjsBAE1JYsUPoCqYdZ1reCfTwbto0Fduo =
3
3
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s =
4
4
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 /go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w =
5
- github.com/VapiAI/server-sdk-go v0.8.1 h1:LhMj5CHj9DIZR0SWIQ/F4+zsmDZESHofc7HNWDx1Sbw =
6
- github.com/VapiAI/server-sdk-go v0.8.1 /go.mod h1:iLrUDuX2ejNvylKCMgYYJcCkTILKGvHUfmP/1HRwtzQ =
5
+ github.com/VapiAI/server-sdk-go v0.9.0 h1:ymq93QRiPbrF69Suy3Q6dXZ9ss70odSZoDPXzZ1WsxE =
6
+ github.com/VapiAI/server-sdk-go v0.9.0 /go.mod h1:iLrUDuX2ejNvylKCMgYYJcCkTILKGvHUfmP/1HRwtzQ =
7
7
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k =
8
8
github.com/aymanbagabas/go-osc52/v2 v2.0.1 /go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8 =
9
9
github.com/charmbracelet/colorprofile v0.3.1 h1:k8dTHMd7fgw4bnFd7jXTLZrSU/CQrKnL3m+AxCzDz40 =
You can’t perform that action at this time.
0 commit comments