(cmd *cobra.Command, input *authoredBodyInput)
| 781 | } |
| 782 | |
| 783 | func addAuthoredBodyFlags(cmd *cobra.Command, input *authoredBodyInput) { |
| 784 | cmd.Flags().StringVar(&input.file, "file", "", "Read authored context body from a file") |
| 785 | cmd.Flags().BoolVar(&input.stdin, "stdin", false, "Read authored context body from stdin") |
| 786 | } |
| 787 | |
| 788 | func readAuthoredBody(cmd *cobra.Command, input authoredBodyInput, required bool) (string, error) { |
| 789 | if cmd.Flags().Changed("file") && input.stdin { |
no outgoing calls
no test coverage detected