(arg string)
| 150 | } |
| 151 | |
| 152 | func parseArg(arg string) (*secret, error) { |
| 153 | key, value, found := strings.Cut(arg, "=") |
| 154 | if !found { |
| 155 | return nil, fmt.Errorf("no key=value pair: %s", arg) |
| 156 | } |
| 157 | return &secret{id: key, val: value}, nil |
| 158 | } |
| 159 | |
| 160 | func readAllWithContext(ctx context.Context, r io.Reader) ([]byte, error) { |
| 161 | var buf []byte |