< Summary

Information
Class: Punch.CLI.PunchCommandSettings
Assembly: punch
File(s): /home/runner/work/punch/punch/src/Punch.CLI/PunchCommandSettings.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 19
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Version()100%11100%
get_Date()100%11100%
get_Yesterday()100%11100%

File(s)

/home/runner/work/punch/punch/src/Punch.CLI/PunchCommandSettings.cs

#LineLine coverage
 1using System.ComponentModel;
 2using Spectre.Console.Cli;
 3
 4namespace Punch.CLI;
 5
 6internal sealed class PunchCommandSettings : CommandSettings
 7{
 8    [Description("Show version information")]
 9    [CommandOption("-v|--version")]
 1410    public bool Version { get; set; }
 11
 12    [Description("Working date override (format: yyyy-MM-dd)")]
 13    [CommandOption("-d|--date")]
 1514    public string? Date { get; set; }
 15
 16    [Description("Open yesterday's timesheet")]
 17    [CommandOption("-y|--yesterday")]
 1218    public bool Yesterday { get; set; }
 19}