Skip to content

timetrace delete commands: Default to no when asking for confirmation #110

@dominikbraun

Description

@dominikbraun

When running a delete command, the user will be asked for confirmation:

timetrace delete record 2021-06-08-12-56
+---------+-------+-----------+------------+
|  START  |  END  |  PROJECT  |  BILLABLE  |
+---------+-------+-----------+------------+
| 12:56   | 16:38 | web-store | no         |
+---------+-------+-----------+------------+
Please confirm (Y/N):
...

The input has to be exactly n or y. This is done using askForConfirmation().


However, it would make sense to default to no.

  • The message should look as follows. Please confirm [y/N]:
  • The function should just check for input == "y" and ignore anything else.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions