(cmd *cobra.Command)
| 33 | var readSharedLinkPassword = defaultReadSharedLinkPassword |
| 34 | |
| 35 | func addSharedLinkPasswordFlags(cmd *cobra.Command) { |
| 36 | cmd.Flags().String("password", "", "Password for password-protected shared links") |
| 37 | cmd.Flags().Bool("password-prompt", false, "Prompt for the shared link password") |
| 38 | cmd.Flags().String("password-file", "", "Read the shared link password from a file") |
| 39 | } |
| 40 | |
| 41 | func sharedLinkPasswordFromFlags(cmd *cobra.Command) (sharedLinkPasswordOptions, error) { |
| 42 | var sourceCount int |
no outgoing calls