1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-31 11:32:16 +01:00

Improve help of the 'git-obs login' subcommands

This commit is contained in:
2025-04-17 16:21:36 +02:00
parent 4f1d92f844
commit 4b10e0381e
5 changed files with 82 additions and 82 deletions

View File

@@ -53,14 +53,14 @@ class Login(BaseModel):
def to_human_readable_string(self, *, show_token: bool = False):
from osc.output import KeyValueTable
table = KeyValueTable()
table = KeyValueTable(min_key_length=20)
table.add("Name", self.name, color="bold")
if self.default:
table.add("Default", "true", color="bold")
table.add("URL", self.url)
table.add("User", self.user)
if self.ssh_key:
table.add("SSH Key", self.ssh_key)
table.add("Private SSH key path", self.ssh_key)
if show_token:
# tokens are stored in the plain text, there's not reason to protect them too much
# let's only hide them from the output by default