Skip to content

Commit

Permalink
Merge branch 'main' into custom-analyzers/parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
matthisholleville authored Jul 18, 2024
2 parents 91861b6 + 391a3cd commit 1e4659a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/auth/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ var updateCmd = &cobra.Command{
Long: "The command to update an AI backend provider",
// Args: cobra.ExactArgs(1),
PreRun: func(cmd *cobra.Command, args []string) {
_ = cmd.MarkFlagRequired("backend")
backend, _ := cmd.Flags().GetString("backend")
if strings.ToLower(backend) == "azureopenai" {
_ = cmd.MarkFlagRequired("engine")
Expand Down

0 comments on commit 1e4659a

Please sign in to comment.