Skip to content

Commit 774dc8d

Browse files
committed
➕ Jira server class to CLI, too
1 parent c8ec07a commit 774dc8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

jwl.console/CLI.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ public class FillCLI
2020
+ $"\nJSON config: $.{nameof(core.AppConfig.User)}.{nameof(core.UserConfig.Name)} for <user name>")]
2121
public string? UserCredentials { get; set; }
2222

23+
[Option("server-class", HelpText = "Jira server class (whether vanilla or with timesheet plugins)"
24+
+ $"\nJSON config: $.{nameof(core.AppConfig.JiraServer)}.{nameof(jira.ServerConfig.ServerClass)}"
25+
+ $"\nAvailable values: {nameof(jira.JiraServerClass.VanillaJira)}, {nameof(jira.JiraServerClass.TempoTimeSheetsPlugin)}, {nameof(jira.JiraServerClass.ICTimePlugin)}")]
26+
public string? ServerClass { get; set; }
27+
2328
[Option("no-proxy", HelpText = "Turn off proxying the HTTP(S) connections to Jira server"
2429
+ $"\nJSON config: $.{nameof(core.AppConfig.JiraServer)}.{nameof(jira.ServerConfig.UseProxy)} (negated!)")]
2530
public bool? NoProxy { get; set; }
@@ -50,6 +55,7 @@ public core.AppConfig ToAppConfig()
5055
UseVerboseFeedback = UseVerboseFeedback,
5156
JiraServer = new jira.ServerConfig()
5257
{
58+
ServerClass = ServerClass,
5359
BaseUrl = jiraServerSpecification,
5460
UseProxy = !NoProxy,
5561
MaxConnectionsPerServer = MaxConnectionsPerServer,

0 commit comments

Comments
 (0)