Skip to content

Commit

Permalink
Add comment about tabular output padding
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulik0 committed May 28, 2024
1 parent 8240162 commit 5a90332
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/jimmctl/cmd/relation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ [email protected] administrator applicationoffer-test-controller-1:alice@
_, err := cmdtesting.RunCommand(c, cmd.NewAddGroupCommandForTesting(s.ClientStore(), bClient), groupName)
c.Assert(err, gc.IsNil)

// -72 is used to fill the rest of the line with whitespace as the output is padded to the length of the longest row
tabularOutput += fmt.Sprintf("\n[email protected] member group-%-72s", groupName)
relations = append(relations, apiparams.RelationshipTuple{
Object: "user-" + env.users[1].Name,
Expand Down

0 comments on commit 5a90332

Please sign in to comment.