(cmd *cobra.Command, ep *gitsync.Endpoint)
| 18 | } |
| 19 | |
| 20 | func addTargetEndpoint(cmd *cobra.Command, ep *gitsync.Endpoint) { |
| 21 | cmd.Flags().StringVar(&ep.URL, "target-url", "", "target repository URL") |
| 22 | cmd.Flags().BoolVar(&ep.FollowInfoRefsRedirect, "target-follow-info-refs-redirect", |
| 23 | envBool("GITSYNC_TARGET_FOLLOW_INFO_REFS_REDIRECT"), |
| 24 | "send follow-up target RPCs to the final /info/refs redirect host") |
| 25 | } |
| 26 | |
| 27 | func addSourceAuth(cmd *cobra.Command, auth *gitsync.EndpointAuth) { |
| 28 | cmd.Flags().StringVar(&auth.Token, "source-token", envOr("GITSYNC_SOURCE_TOKEN", ""), "source token/password") |
no test coverage detected