MCPcopy Create free account
hub / github.com/compozy/agh / addAuthoredBodyFlags

Function addAuthoredBodyFlags

internal/cli/authored_context.go:783–786  ·  view source on GitHub ↗
(cmd *cobra.Command, input *authoredBodyInput)

Source from the content-addressed store, hash-verified

781}
782
783func 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
788func readAuthoredBody(cmd *cobra.Command, input authoredBodyInput, required bool) (string, error) {
789 if cmd.Flags().Changed("file") && input.stdin {

Calls

no outgoing calls

Tested by

no test coverage detected