Skip to content

Commit

Permalink
Updated addDeployTargetConfigCmd to check project & deploytarget prov…
Browse files Browse the repository at this point in the history
…ided
  • Loading branch information
CGoodwin90 committed Nov 17, 2023
1 parent 19bb4c3 commit cda02dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/deploytargetconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ var addDeployTargetConfigCmd = &cobra.Command{
return err
}

if cmdProjectName == "" {
return fmt.Errorf("Missing arguments: project is a required flag")
}
if deploytarget == 0 {
return fmt.Errorf("Missing arguments: deploytarget id is a required flag")
}
if pullrequests == "" {
return fmt.Errorf("Missing arguments: pullrequests is a required flag")
}
Expand Down

0 comments on commit cda02dc

Please sign in to comment.