Skip to content

Don't prompt for a timesheet when only one is active #17

@adamgundry

Description

@adamgundry

Thanks very much for this tool! I'm finding it very useful.

A small quality-of-life improvement that would be nice to see: when using kimai stop or kimai active -d and there is only one active timesheet, it would be nice if the prompt to select a timesheet was skipped. At the moment there is a prompt with only one option, which seems redundant:

kimai stop
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 
  ID    Started at                 Activity               Project      Customer     Description                                                Tags  
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 
  217   ...
 ----- -------------------------- ---------------------- ------------ ------------ ---------------------------------------------------------- ------ 

 Please select a timesheet:
  [0] 217
 > 0

                                                                                                                        
 [OK] Stopped 1 active timesheet(s) with ID: 217                                                                        
                                                                                                                       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions