Skip to content

Commit 6a39f07

Browse files
committed
Rename ListUser to GetUsers for consistency in user access commands
1 parent c26b790 commit 6a39f07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/goipmi/commands/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ func NewCmdUserList() *cobra.Command {
4747
}
4848

4949
ctx := context.Background()
50-
users, err := client.ListUser(ctx, channelNumber)
50+
users, err := client.GetUsers(ctx, channelNumber)
5151
if err != nil {
52-
CheckErr(fmt.Errorf("ListUser failed, err: %w", err))
52+
CheckErr(fmt.Errorf("GetUsers failed, err: %w", err))
5353
}
5454

5555
fmt.Println(ipmi.FormatUsers(users))

cmd_get_user_access.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (c *Client) GetUserAccess(ctx context.Context, channelNumber uint8, userID
101101
return
102102
}
103103

104-
func (c *Client) ListUser(ctx context.Context, channelNumber uint8) ([]*User, error) {
104+
func (c *Client) GetUsers(ctx context.Context, channelNumber uint8) ([]*User, error) {
105105
var users = make([]*User, 0)
106106

107107
var userID uint8 = 1

0 commit comments

Comments
 (0)