Skip to content

Commit

Permalink
key: check for app name during creation
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed May 1, 2024
1 parent 26d94cd commit acd968e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controller/key.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
package controller

import (
"errors"
"fmt"
"time"
)

func (c *Controller) KeyCreate(app string) error {
if app == "" {
return errors.New("missing app name")
}
_, err := c.client.ApiKeyAPI.CreateKey(c.ctx).App(app).Execute()
return err
}
Expand Down

0 comments on commit acd968e

Please sign in to comment.