(cmd *cobra.Command, from, to, commit *string)
| 19 | } |
| 20 | |
| 21 | func addDiffFlags(cmd *cobra.Command, from, to, commit *string) { |
| 22 | cmd.Flags().StringVar(from, "from", "", "source ref to start diff from (e.g., 'main')") |
| 23 | cmd.Flags().StringVar(to, "to", "", "target ref to end diff at (e.g., 'feature-branch')") |
| 24 | cmd.Flags().StringVarP(commit, "commit", "c", "", "single commit hash or tag to review (vs its parent)") |
| 25 | } |
| 26 | |
| 27 | func addBackgroundFlags(cmd *cobra.Command, background, backgroundFile *string) { |
| 28 | cmd.Flags().StringVarP(background, "background", "b", "", "optional requirement/business context for the review") |
no outgoing calls
no test coverage detected