Represents parsed credentials.
| 156 | |
| 157 | |
| 158 | class AuthCredentials(KeyValueArg, PromptMixin): |
| 159 | """Represents parsed credentials.""" |
| 160 | |
| 161 | def has_password(self) -> bool: |
| 162 | return self.value is not None |
| 163 | |
| 164 | def prompt_password(self, host: str) -> None: |
| 165 | self.value = self._prompt_password(f'password for {self.key}@{host}:') |
| 166 | |
| 167 | |
| 168 | class AuthCredentialsArgType(KeyValueArgType): |