Skip to content

Commit d7bce51

Browse files
authored
Merge pull request #403 from nblumhardt/feature/forwarder
`seqcli forwarder` command group
2 parents 4d173ef + a60edea commit d7bce51

File tree

202 files changed

+6019
-877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+6019
-877
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,5 @@ __pycache__/
290290

291291
# ci.global.json is used in CI; local builds are unconstrained
292292
global.json
293+
294+
.DS_Store/

build/Build.Windows.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Create-ArtifactDir
3939

4040
function Publish-Archives($version)
4141
{
42-
$rids = $([xml](Get-Content .\src\SeqCli\SeqCli.csproj)).Project.PropertyGroup.RuntimeIdentifiers.Split(';')
42+
$rids = $([xml](Get-Content .\src\SeqCli\SeqCli.csproj)).Project.PropertyGroup.RuntimeIdentifiers[0].Split(';')
4343
foreach ($rid in $rids) {
4444
$tfm = $framework
4545
if ($rid -eq "win-x64") {

seqcli.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{3587B633-0
1919
EndProject
2020
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "asset", "asset", "{438A0DA5-F3CF-4FCE-B43A-B6DA2981D4AE}"
2121
ProjectSection(SolutionItems) = preProject
22-
asset\SeqCliLicense.rtf = asset\SeqCliLicense.rtf
2322
asset\SeqCli.ico = asset\SeqCli.ico
2423
asset\SeqCli.png = asset\SeqCli.png
2524
EndProjectSection

seqcli.sln.DotSettings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
2+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=IO/@EntryIndexedValue">IO</s:String>
3+
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=IP/@EntryIndexedValue">IP</s:String>
24
<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/Abbreviations/=MS/@EntryIndexedValue">MS</s:String>
35
<s:Boolean x:Key="/Default/UserDictionary/Words/=apikey/@EntryIndexedValue">True</s:Boolean>
46
<s:Boolean x:Key="/Default/UserDictionary/Words/=appinstance/@EntryIndexedValue">True</s:Boolean>
@@ -9,13 +11,15 @@
911
<s:Boolean x:Key="/Default/UserDictionary/Words/=cmds/@EntryIndexedValue">True</s:Boolean>
1012
<s:Boolean x:Key="/Default/UserDictionary/Words/=command_0027s/@EntryIndexedValue">True</s:Boolean>
1113
<s:Boolean x:Key="/Default/UserDictionary/Words/=Datalust/@EntryIndexedValue">True</s:Boolean>
14+
<s:Boolean x:Key="/Default/UserDictionary/Words/=decryptor/@EntryIndexedValue">True</s:Boolean>
1215
<s:Boolean x:Key="/Default/UserDictionary/Words/=delim/@EntryIndexedValue">True</s:Boolean>
1316
<s:Boolean x:Key="/Default/UserDictionary/Words/=Enricher/@EntryIndexedValue">True</s:Boolean>
1417
<s:Boolean x:Key="/Default/UserDictionary/Words/=enrichers/@EntryIndexedValue">True</s:Boolean>
1518
<s:Boolean x:Key="/Default/UserDictionary/Words/=formattable/@EntryIndexedValue">True</s:Boolean>
1619
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gravatar/@EntryIndexedValue">True</s:Boolean>
1720
<s:Boolean x:Key="/Default/UserDictionary/Words/=hackily/@EntryIndexedValue">True</s:Boolean>
1821
<s:Boolean x:Key="/Default/UserDictionary/Words/=mdash/@EntryIndexedValue">True</s:Boolean>
22+
<s:Boolean x:Key="/Default/UserDictionary/Words/=nologo/@EntryIndexedValue">True</s:Boolean>
1923
<s:Boolean x:Key="/Default/UserDictionary/Words/=n_0027est/@EntryIndexedValue">True</s:Boolean>
2024
<s:Boolean x:Key="/Default/UserDictionary/Words/=retentionpolicies/@EntryIndexedValue">True</s:Boolean>
2125
<s:Boolean x:Key="/Default/UserDictionary/Words/=retentionpolicy/@EntryIndexedValue">True</s:Boolean>
@@ -32,4 +36,5 @@
3236
<s:Boolean x:Key="/Default/UserDictionary/Words/=Tokenizes/@EntryIndexedValue">True</s:Boolean>
3337
<s:Boolean x:Key="/Default/UserDictionary/Words/=trailingindent/@EntryIndexedValue">True</s:Boolean>
3438
<s:Boolean x:Key="/Default/UserDictionary/Words/=unawaited/@EntryIndexedValue">True</s:Boolean>
39+
<s:Boolean x:Key="/Default/UserDictionary/Words/=Unclosable/@EntryIndexedValue">True</s:Boolean>
3540
<s:Boolean x:Key="/Default/UserDictionary/Words/=xmpweb/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

src/Roastery/Fake/Person.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public Person(string? name, string? address)
1414
}
1515

1616
static readonly string[] Forenames =
17-
{
17+
[
1818
"Akeem",
1919
"Alice",
2020
"Alok",
@@ -40,10 +40,10 @@ public Person(string? name, string? address)
4040
"Yoshi",
4141
"Zach",
4242
"Zeynep"
43-
};
43+
];
4444

4545
static readonly string[] Surnames =
46-
{
46+
[
4747
"Anderson",
4848
"Alvarez",
4949
"Brookes",
@@ -60,10 +60,10 @@ public Person(string? name, string? address)
6060
"Smith",
6161
"Xia",
6262
"Zheng"
63-
};
63+
];
6464

6565
static readonly string[] Streets =
66-
{
66+
[
6767
"Lilac Road",
6868
"Lilly Street",
6969
"Carnation Street",
@@ -78,7 +78,7 @@ public Person(string? name, string? address)
7878
"Trillium Creek Parkway",
7979
"Grevillea Street",
8080
"Kurrajong Street"
81-
};
81+
];
8282

8383
public static Person Generate()
8484
{

src/Roastery/Web/FaultInjectionMiddleware.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public FaultInjectionMiddleware(ILogger logger, HttpServer next)
1818
{
1919
_logger = logger.ForContext<FaultInjectionMiddleware>();
2020
_next = next;
21-
_faults = new Func<HttpRequest, Task<HttpResponse>>[]
22-
{
21+
_faults =
22+
[
2323
Unauthorized,
2424
Unauthorized,
2525
Unauthorized,
2626
Timeout,
2727
Timeout,
2828
Disposed
29-
};
29+
];
3030
}
3131

3232
Task<HttpResponse> Unauthorized(HttpRequest request)

src/Roastery/Web/Router.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Router(IEnumerable<Controller> controllers, ILogger logger)
6363
{
6464
using var _ = LogContext.PushProperty("Controller", controllerName);
6565
using var __ = LogContext.PushProperty("Action", actionName);
66-
return (Task<HttpResponse>) method.Invoke(controller, new object[] {r})!;
66+
return (Task<HttpResponse>) method.Invoke(controller, [r])!;
6767
});
6868

6969
_logger.Debug("Binding route HTTP {HttpMethod} {RouteTemplate} to action method {Controller}.{Action}()",

src/SeqCli/Apps/Definitions/AppMetadataReader.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,15 @@ static Dictionary<string, AppSettingDefinition> GetAvailableSettings(Type mainRe
7979
});
8080
}
8181

82-
static readonly HashSet<Type> IntegerTypes = new()
83-
{
82+
static readonly HashSet<Type> IntegerTypes =
83+
[
8484
typeof(short), typeof(ushort), typeof(int), typeof(uint),
8585
typeof(long), typeof(ulong)
86-
};
86+
];
8787

88-
static readonly HashSet<Type> DecimalTypes = new()
89-
{
90-
typeof(float), typeof(double), typeof(decimal)
91-
};
88+
static readonly HashSet<Type> DecimalTypes = [typeof(float), typeof(double), typeof(decimal)];
9289

93-
static readonly HashSet<Type> BooleanTypes = new()
94-
{
95-
typeof(bool)
96-
};
90+
static readonly HashSet<Type> BooleanTypes = [typeof(bool)];
9791

9892
internal static AppSettingType GetSettingType(Type type)
9993
{

src/SeqCli/Apps/Hosting/AppContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright Datalust Pty Ltd and Contributors
1+
// Copyright © Datalust Pty Ltd and Contributors
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

src/SeqCli/Cli/CommandAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public class CommandAttribute : Attribute, ICommandMetadata
2222
public string Name { get; }
2323
public string? SubCommand { get; }
2424
public string HelpText { get; }
25-
2625
public string? Example { get; set; }
26+
public bool IsPreview { get; set; }
2727

2828
public CommandAttribute(string name, string helpText)
2929
{

0 commit comments

Comments
 (0)