Skip to content

Commit

Permalink
Require account for create (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeCooper authored Oct 7, 2020
1 parent dedea89 commit 8a37445
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ func (h *Handler) initFromID(ctx context.Context, req *entity.CommandRequest) er
func (h *Handler) Init(ctx context.Context, req *entity.CommandRequest) error {
isLoggedIn, _ := h.ctrl.IsLoggedIn(ctx)

if !isLoggedIn {
return errors.New("Account require to init project")
}

selection, err := ui.PromptInit(isLoggedIn)
if err != nil {
return err
Expand Down

0 comments on commit 8a37445

Please sign in to comment.