Skip to content

Commit

Permalink
Account management basics
Browse files Browse the repository at this point in the history
This adds basic of account management including scoped
signing keys, several todo items left but good for early
feedback

Signed-off-by: R.I.Pienaar <[email protected]>
  • Loading branch information
ripienaar committed Dec 1, 2023
1 parent 875003b commit df0fda4
Show file tree
Hide file tree
Showing 8 changed files with 973 additions and 70 deletions.
19 changes: 4 additions & 15 deletions cli/account_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,31 +472,20 @@ func (c *actCmd) infoAction(_ *fisk.ParseContext) error {
}

cols.Indent(2)
defer cols.Indent(0)

cols.Println(title)

if len(p.Allow) > 0 {
sort.Strings(p.Allow)
for i, perm := range p.Allow {
if i == 0 {
cols.AddRow("Allow", perm)
} else {
cols.AddRow("", perm)
}
}
cols.AddStringsAsValue("Allow", p.Allow)
}

if len(p.Deny) > 0 {
cols.Println()
sort.Strings(p.Deny)
for i, perm := range p.Deny {
if i == 0 {
cols.AddRow("Deny", perm)
} else {
cols.AddRow("", perm)
}
}
cols.AddStringsAsValue("Deny", p.Deny)
}
cols.Indent(0)
}

if ui != nil && ui.Permissions != nil {
Expand Down
Loading

0 comments on commit df0fda4

Please sign in to comment.