goharbor / goharbor/harbor-cli
[bug]: quit does not exit command in `robot create`
- Dominant language
- Go
- Stars
- 163
- Forks
- 211
- Avg merge
- 1m
- Merged PRs (30d)
- 1
Description
## Description
When in the multiselect page, where we select permissions, if we cancel using the `q` character, the program still executes and takes what we might have selected.
If nothing is selected, it shows `no permissions selected`, if we select something and then quit, it goes on ahead with no issues.
## Steps to Reproduce
1. Run command: `harbor-cli robot create`
2. With arguments/config: none
3. Fill placeholder name and description, and proceed to permission selection page
4. Select a permission but instead of moving forward, press `q` to quit.
5. The program continues and doesnt exist
## What you expected to happen.
Expected program to exit, and show a `user exited at system permission` message or similar.
## Actual Behavior
Continues to creation. Creates it successfully if you go through and fill rest of details.
## Environment
- OS: Fedora Linux
- Tool version: https://github.com/goharbor/harbor-cli/commit/455293c23d28c5fc6e67cb3bff7107d6cdf8403a
Contributor guide
Assessment
This issue has not been assessed yet.