Skip to content

Commit

Permalink
Ask name after fetching rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cyx committed Mar 20, 2021
1 parent daeb4c5 commit 4819ea8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/cli/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,6 @@ auth0 rules update --id rul_d2VSaGlyaW5n --name "My Updated Rule" --enabled=fal
}
}

if err := ruleName.AskU(cmd, &inputs.Name); err != nil {
return err
}

var rule *management.Rule
err := ansi.Waiting(func() error {
var err error
Expand All @@ -294,6 +290,10 @@ auth0 rules update --id rul_d2VSaGlyaW5n --name "My Updated Rule" --enabled=fal
return fmt.Errorf("Failed to fetch rule with ID: %s %v", inputs.ID, err)
}

if err := ruleName.AskU(cmd, &inputs.Name); err != nil {
return err
}

// TODO(cyx): we can re-think this once we have
// `--stdin` based commands. For now we don't have
// those yet, so keeping this simple.
Expand Down

0 comments on commit 4819ea8

Please sign in to comment.