Skip to content

Commit 95b586b

Browse files
committed
initial commit — reusable splash screen library (0.1.0)
Configurable Figgle + Spectre.Console splash for .NET CLIs. Piecewise- linear gradient across N hex stops, three tagline strategies (none / random built-in / user-provided), lazy Figgle render + single-markup emission (cold start <10 ms vs ~60 ms for the per-char precursor). - src/NextIteration.SpectreConsole.Splash — library - tests/ — 40 xUnit tests (gradient, colours, tagline, renderer, quotes, screen); all green - demo/ — 5-scenario console app showing defaults, custom gradient, font swap, no tagline, solid colour - CI builds + tests on ubuntu-latest (net10.0) - Not published to NuGet; consume via git submodule + ProjectReference
0 parents  commit 95b586b

25 files changed

Lines changed: 2063 additions & 0 deletions

.editorconfig

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
root = true
2+
3+
# -------------------------------
4+
# General
5+
# -------------------------------
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
indent_style = space
11+
indent_size = 4
12+
trim_trailing_whitespace = true
13+
14+
# -------------------------------
15+
# C# files
16+
# -------------------------------
17+
[*.cs]
18+
19+
indent_size = 4
20+
21+
# New lines & braces
22+
csharp_new_line_before_open_brace = all
23+
csharp_prefer_braces = true:warning
24+
25+
# Using directives
26+
dotnet_sort_system_directives_first = true
27+
dotnet_separate_import_directive_groups = true
28+
29+
# var usage (Spectre-style: pragmatic)
30+
csharp_style_var_for_built_in_types = true:suggestion
31+
csharp_style_var_when_type_is_apparent = true:suggestion
32+
csharp_style_var_elsewhere = false:suggestion
33+
34+
# Expression-bodied members (used where clean)
35+
csharp_style_expression_bodied_methods = when_on_single_line:suggestion
36+
csharp_style_expression_bodied_constructors = false:suggestion
37+
csharp_style_expression_bodied_operators = when_on_single_line:suggestion
38+
csharp_style_expression_bodied_properties = when_on_single_line:suggestion
39+
40+
# Pattern matching / modern C#
41+
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
42+
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
43+
44+
# Nullability helpers
45+
dotnet_style_null_propagation = true:suggestion
46+
dotnet_style_coalesce_expression = true:suggestion
47+
48+
# Readonly fields
49+
dotnet_style_readonly_field = true:suggestion
50+
51+
# -------------------------------
52+
# Naming
53+
# -------------------------------
54+
55+
# Private fields: _camelCase
56+
dotnet_naming_rule.private_fields_should_be_camel_case.severity = suggestion
57+
dotnet_naming_rule.private_fields_should_be_camel_case.symbols = private_fields
58+
dotnet_naming_rule.private_fields_should_be_camel_case.style = camel_case_with_underscore
59+
60+
dotnet_naming_symbols.private_fields.applicable_kinds = field
61+
dotnet_naming_symbols.private_fields.applicable_accessibilities = private
62+
63+
dotnet_naming_style.camel_case_with_underscore.capitalization = camel_case
64+
dotnet_naming_style.camel_case_with_underscore.required_prefix = _
65+
66+
# Interfaces: IMyInterface
67+
dotnet_naming_rule.interfaces_should_start_with_i.severity = suggestion
68+
dotnet_naming_rule.interfaces_should_start_with_i.symbols = interfaces
69+
dotnet_naming_rule.interfaces_should_start_with_i.style = interface_prefix
70+
71+
dotnet_naming_symbols.interfaces.applicable_kinds = interface
72+
73+
dotnet_naming_style.interface_prefix.required_prefix = I
74+
dotnet_naming_style.interface_prefix.capitalization = pascal_case
75+
76+
# -------------------------------
77+
# Analyzers
78+
# -------------------------------
79+
80+
# Keep warnings visible but not painful
81+
dotnet_analyzer_diagnostic.severity = warning
82+
83+
# Unused usings
84+
dotnet_diagnostic.IDE0005.severity = warning
85+
86+
# Simplification
87+
dotnet_diagnostic.IDE0007.severity = suggestion
88+
dotnet_diagnostic.IDE0008.severity = suggestion
89+
90+
# Documentation (Spectre.Console is pragmatic here)
91+
dotnet_diagnostic.CS1591.severity = silent
92+
93+
# -------------------------------
94+
# JSON / YAML
95+
# -------------------------------
96+
[*.json]
97+
indent_size = 2
98+
99+
[*.yml]
100+
indent_size = 2
101+
102+
[*.yaml]
103+
indent_size = 2

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
env:
4+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
tags:
10+
- 'v*'
11+
pull_request:
12+
branches: [ main ]
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
22+
- name: Setup .NET 10
23+
uses: actions/setup-dotnet@v5
24+
with:
25+
dotnet-version: '10.0.x'
26+
27+
- name: Restore
28+
run: dotnet restore
29+
30+
- name: Build
31+
run: dotnet build --configuration Release --no-restore
32+
33+
- name: Test
34+
run: dotnet test --configuration Release --no-build --verbosity normal

0 commit comments

Comments
 (0)