Skip to content

Commit 4579910

Browse files
Remove Spectre.Console.Cli from repository
* Move Spectre.Console.Cli to its own repository * Update build script to use Cake.Sdk and .NET Make * Remove StyleCop (unmaintained) * Add linting using dotnet format * Fix generator which was broken * Update dependencies
1 parent 1ec7b8a commit 4579910

856 files changed

Lines changed: 2415 additions & 24551 deletions

File tree

Some content is hidden

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

.editorconfig

Lines changed: 1 addition & 152 deletions
Original file line numberDiff line numberDiff line change
@@ -24,155 +24,4 @@ indent_size = 2
2424
indent_size = 2
2525

2626
[*.md]
27-
trim_trailing_whitespace = false
28-
29-
[*.cs]
30-
# Prefer file scoped namespace declarations
31-
csharp_style_namespace_declarations = file_scoped:warning
32-
33-
# Sort using and Import directives with System.* appearing first
34-
dotnet_sort_system_directives_first = true
35-
dotnet_separate_import_directive_groups = false
36-
37-
# Avoid "this." and "Me." if not necessary
38-
dotnet_style_qualification_for_field = false:refactoring
39-
dotnet_style_qualification_for_property = false:refactoring
40-
dotnet_style_qualification_for_method = false:refactoring
41-
dotnet_style_qualification_for_event = false:refactoring
42-
43-
# Use language keywords instead of framework type names for type references
44-
dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
45-
dotnet_style_predefined_type_for_member_access = true:suggestion
46-
47-
# Suggest more modern language features when available
48-
dotnet_style_object_initializer = true:suggestion
49-
dotnet_style_collection_initializer = true:suggestion
50-
dotnet_style_coalesce_expression = true:suggestion
51-
dotnet_style_null_propagation = true:suggestion
52-
dotnet_style_explicit_tuple_names = true:suggestion
53-
54-
# Non-private static fields are PascalCase
55-
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.severity = suggestion
56-
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.symbols = non_private_static_fields
57-
dotnet_naming_rule.non_private_static_fields_should_be_pascal_case.style = non_private_static_field_style
58-
dotnet_naming_symbols.non_private_static_fields.applicable_kinds = field
59-
dotnet_naming_symbols.non_private_static_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
60-
dotnet_naming_symbols.non_private_static_fields.required_modifiers = static
61-
dotnet_naming_style.non_private_static_field_style.capitalization = pascal_case
62-
63-
# Non-private readonly fields are PascalCase
64-
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.severity = suggestion
65-
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.symbols = non_private_readonly_fields
66-
dotnet_naming_rule.non_private_readonly_fields_should_be_pascal_case.style = non_private_readonly_field_style
67-
dotnet_naming_symbols.non_private_readonly_fields.applicable_kinds = field
68-
dotnet_naming_symbols.non_private_readonly_fields.applicable_accessibilities = public, protected, internal, protected_internal, private_protected
69-
dotnet_naming_symbols.non_private_readonly_fields.required_modifiers = readonly
70-
dotnet_naming_style.non_private_readonly_field_style.capitalization = pascal_case
71-
72-
# Constants are PascalCase
73-
dotnet_naming_rule.constants_should_be_pascal_case.severity = suggestion
74-
dotnet_naming_rule.constants_should_be_pascal_case.symbols = constants
75-
dotnet_naming_rule.constants_should_be_pascal_case.style = constant_style
76-
dotnet_naming_symbols.constants.applicable_kinds = field, local
77-
dotnet_naming_symbols.constants.required_modifiers = const
78-
dotnet_naming_style.constant_style.capitalization = pascal_case
79-
80-
# Instance fields are camelCase and start with _
81-
dotnet_naming_rule.instance_fields_should_be_camel_case.severity = suggestion
82-
dotnet_naming_rule.instance_fields_should_be_camel_case.symbols = instance_fields
83-
dotnet_naming_rule.instance_fields_should_be_camel_case.style = instance_field_style
84-
dotnet_naming_symbols.instance_fields.applicable_kinds = field
85-
dotnet_naming_style.instance_field_style.capitalization = camel_case
86-
dotnet_naming_style.instance_field_style.required_prefix = _
87-
88-
# Locals and parameters are camelCase
89-
dotnet_naming_rule.locals_should_be_camel_case.severity = suggestion
90-
dotnet_naming_rule.locals_should_be_camel_case.symbols = locals_and_parameters
91-
dotnet_naming_rule.locals_should_be_camel_case.style = camel_case_style
92-
dotnet_naming_symbols.locals_and_parameters.applicable_kinds = parameter, local
93-
dotnet_naming_style.camel_case_style.capitalization = camel_case
94-
95-
# Local functions are PascalCase
96-
dotnet_naming_rule.local_functions_should_be_pascal_case.severity = suggestion
97-
dotnet_naming_rule.local_functions_should_be_pascal_case.symbols = local_functions
98-
dotnet_naming_rule.local_functions_should_be_pascal_case.style = local_function_style
99-
dotnet_naming_symbols.local_functions.applicable_kinds = local_function
100-
dotnet_naming_style.local_function_style.capitalization = pascal_case
101-
102-
# By default, name items with PascalCase
103-
dotnet_naming_rule.members_should_be_pascal_case.severity = suggestion
104-
dotnet_naming_rule.members_should_be_pascal_case.symbols = all_members
105-
dotnet_naming_rule.members_should_be_pascal_case.style = pascal_case_style
106-
dotnet_naming_symbols.all_members.applicable_kinds = *
107-
dotnet_naming_style.pascal_case_style.capitalization = pascal_case
108-
109-
# Newline settings
110-
csharp_new_line_before_open_brace = all
111-
csharp_new_line_before_else = true
112-
csharp_new_line_before_catch = true
113-
csharp_new_line_before_finally = true
114-
csharp_new_line_before_members_in_object_initializers = true
115-
csharp_new_line_before_members_in_anonymous_types = true
116-
csharp_new_line_between_query_expression_clauses = true
117-
118-
# Indentation preferences
119-
csharp_indent_block_contents = true
120-
csharp_indent_braces = false
121-
csharp_indent_case_contents = true
122-
csharp_indent_case_contents_when_block = true
123-
csharp_indent_switch_labels = true
124-
csharp_indent_labels = flush_left
125-
126-
# Prefer "var" everywhere
127-
csharp_style_var_for_built_in_types = true:suggestion
128-
csharp_style_var_when_type_is_apparent = true:suggestion
129-
csharp_style_var_elsewhere = true:suggestion
130-
131-
# Prefer method-like constructs to have a block body
132-
csharp_style_expression_bodied_methods = false:none
133-
csharp_style_expression_bodied_constructors = false:none
134-
csharp_style_expression_bodied_operators = false:none
135-
136-
# Prefer property-like constructs to have an expression-body
137-
csharp_style_expression_bodied_properties = true:none
138-
csharp_style_expression_bodied_indexers = true:none
139-
csharp_style_expression_bodied_accessors = true:none
140-
141-
# Suggest more modern language features when available
142-
csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
143-
csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
144-
csharp_style_inlined_variable_declaration = true:suggestion
145-
csharp_style_throw_expression = true:suggestion
146-
csharp_style_conditional_delegate_call = true:suggestion
147-
148-
# Space preferences
149-
csharp_space_after_cast = false
150-
csharp_space_after_colon_in_inheritance_clause = true
151-
csharp_space_after_comma = true
152-
csharp_space_after_dot = false
153-
csharp_space_after_keywords_in_control_flow_statements = true
154-
csharp_space_after_semicolon_in_for_statement = true
155-
csharp_space_around_binary_operators = before_and_after
156-
csharp_space_around_declaration_statements = do_not_ignore
157-
csharp_space_before_colon_in_inheritance_clause = true
158-
csharp_space_before_comma = false
159-
csharp_space_before_dot = false
160-
csharp_space_before_open_square_brackets = false
161-
csharp_space_before_semicolon_in_for_statement = false
162-
csharp_space_between_empty_square_brackets = false
163-
csharp_space_between_method_call_empty_parameter_list_parentheses = false
164-
csharp_space_between_method_call_name_and_opening_parenthesis = false
165-
csharp_space_between_method_call_parameter_list_parentheses = false
166-
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
167-
csharp_space_between_method_declaration_name_and_open_parenthesis = false
168-
csharp_space_between_method_declaration_parameter_list_parentheses = false
169-
csharp_space_between_parentheses = false
170-
csharp_space_between_square_brackets = false
171-
172-
# Blocks are allowed
173-
csharp_prefer_braces = true:silent
174-
csharp_preserve_single_line_blocks = true
175-
csharp_preserve_single_line_statements = true
176-
177-
# warning RS0037: PublicAPI.txt is missing '#nullable enable'
178-
dotnet_diagnostic.RS0037.severity = none
27+
trim_trailing_whitespace = false

.github/workflows/ci.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
dotnet-version: |
2929
8.0.x
3030
9.0.x
31+
10.0.x
3132
3233
- name: Build
3334
shell: bash
3435
run: |
3536
dotnet tool restore
36-
dotnet cake
37+
dotnet make
3738
3839
- name: Upload Verify Test Results
3940
if: failure()

.github/workflows/publish.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@ jobs:
3434
dotnet-version: |
3535
8.0.x
3636
9.0.x
37+
10.0.x
3738
3839
- name: Publish
3940
shell: bash
4041
run: |
4142
dotnet tool restore
42-
dotnet cake --target="publish" \
43+
dotnet make publish \
4344
--nuget-key="${{secrets.NUGET_API_KEY}}" \
4445
--github-key="${{secrets.GITHUB_TOKEN}}"
4546

README.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ It is heavily inspired by the excellent Python library, [Rich](https://github.co
1111
1. [Installing](#installing)
1212
1. [Documentation](#documentation)
1313
1. [Examples](#examples)
14-
1. [Sponsors](#sponsors)
1514
1. [Code of Conduct](#code-of-conduct)
1615
1. [.NET Foundation](#net-foundation)
1716
1. [License](#license)
@@ -52,26 +51,6 @@ https://spectreconsole.net
5251
To see `Spectre.Console` in action, please see the
5352
[examples repository](https://github.com/spectreconsole/examples).
5453

55-
## Sponsors
56-
57-
The following people are [sponsoring](https://github.com/sponsors/patriksvensson)
58-
`Spectre.Console` to show their support and to ensure the longevity of the project.
59-
60-
* [Rodney Littles II](https://github.com/RLittlesII)
61-
* [Martin Björkström](https://github.com/bjorkstromm)
62-
* [Dave Glick](https://github.com/daveaglick)
63-
* [Kim Gunnarsson](https://github.com/kimgunnarsson)
64-
* [Andrew McClenaghan](https://github.com/andymac4182)
65-
* [C. Augusto Proiete](https://github.com/augustoproiete)
66-
* [Viktor Elofsson](https://github.com/vktr)
67-
* [Steven Knox](https://github.com/stevenknox)
68-
* [David Pendray](https://github.com/dpen2000)
69-
* [Elmah.io](https://github.com/elmahio)
70-
* [Tom Kerkhove](https://github.com/tomkerkhove)
71-
72-
We really appreciate it.
73-
**Thank you very much!**
74-
7554
## Code of Conduct
7655

7756
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.

README.pt-BR.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ para Python.
99
## Índice de Conteúdo
1010

1111
1. [Funcionalidades](#funcionalidades)
12-
2. [Instalação](#instalação)
13-
3. [Documentação](#documentação)
14-
4. [Exemplos](#exemplos)
15-
5. [Patrocinadores](#patrocinadores)
16-
5. [Licença](#licença)
12+
1. [Instalação](#instalação)
13+
1. [Documentação](#documentação)
14+
1. [Exemplos](#exemplos)
15+
1. [Licença](#licença)
1716

1817
## Funcionalidades
1918

@@ -46,25 +45,6 @@ https://spectreconsole.net/
4645
To see `Spectre.Console` in action, please see the
4746
[examples repository](https://github.com/spectreconsole/examples).
4847

49-
## Patrocinadores
50-
51-
As seguintes pessoas estão [patrocinando](https://github.com/sponsors/patriksvensson)
52-
o Spectre.Console para mostrar o seu apoio e garantir a longevidade do projeto.
53-
54-
* [Rodney Littles II](https://github.com/RLittlesII)
55-
* [Martin Björkström](https://github.com/bjorkstromm)
56-
* [Dave Glick](https://github.com/daveaglick)
57-
* [Kim Gunanrsson](https://github.com/kimgunnarsson)
58-
* [Andrew McClenaghan](https://github.com/andymac4182)
59-
* [C. Augusto Proiete](https://github.com/augustoproiete)
60-
* [Viktor Elofsson](https://github.com/vktr)
61-
* [Steven Knox](https://github.com/stevenknox)
62-
* [David Pendray](https://github.com/dpen2000)
63-
* [Elmah.io](https://github.com/elmahio)
64-
65-
Eu estou muito agradecido.
66-
**Muito obrigado!**
67-
6848
## Licença
6949

7050
Copyright © Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi, Frank Ray

README.zh.md

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ _[![Spectre.Console NuGet Version](https://img.shields.io/nuget/v/spectre.consol
99
## 目录
1010

1111
1. [功能](#功能)
12-
2. [安装](#安装)
13-
3. [文档](#文档)
14-
4. [例子](#例子)
15-
5. [Sponsors](#Sponsors)
16-
6. [开源许可](#开源许可)
12+
1. [安装](#安装)
13+
1. [文档](#文档)
14+
1. [例子](#例子)
15+
1. [开源许可](#开源许可)
1716

1817
## 功能
1918

@@ -42,24 +41,6 @@ https://spectreconsole.net/
4241
To see `Spectre.Console` in action, please see the
4342
[examples repository](https://github.com/spectreconsole/examples).
4443

45-
## Sponsors
46-
47-
下面这些用户正在[sponsor](https://github.com/sponsors/patriksvensson)上支持着Spectre.Console,确保这个项目的持续维护。
48-
49-
* [Rodney Littles II](https://github.com/RLittlesII)
50-
* [Martin Björkström](https://github.com/bjorkstromm)
51-
* [Dave Glick](https://github.com/daveaglick)
52-
* [Kim Gunanrsson](https://github.com/kimgunnarsson)
53-
* [Andrew McClenaghan](https://github.com/andymac4182)
54-
* [C. Augusto Proiete](https://github.com/augustoproiete)
55-
* [Viktor Elofsson](https://github.com/vktr)
56-
* [Steven Knox](https://github.com/stevenknox)
57-
* [David Pendray](https://github.com/dpen2000)
58-
* [Elmah.io](https://github.com/elmahio)
59-
60-
我对此表示十分感激
61-
**非常感谢各位!**
62-
6344
## 开源许可
6445

6546
版权所有 © Patrik Svensson, Phil Scott, Nils Andresen, Cédric Luthi, Frank Ray

0 commit comments

Comments
 (0)