Skip to content

Commit

Permalink
client: rm Answer type
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed May 14, 2024
1 parent aea8a36 commit 80eac2b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ type QuestionInfo struct {
Tags map[string]string `json:"tags,omitempty"`
}

type Answer struct {
Commands []*CommandExplanation `json:"commands"`
}

type CommandExplanation struct {
Command string `json:"command"`
Explanation string `json:"explanation"`
}

func (c *client) Ask(ctx context.Context, question QuestionInfo) (*Runbook, error) {
return ask(ctx, c.cl, c.apiURL("/api/v1/public/ask"), question)
}
Expand Down

0 comments on commit 80eac2b

Please sign in to comment.