Class RepoGetFileMascGeneratorData
- Namespace
- SunamoDevCode
- Assembly
- SunamoDevCode.dll
EN: Data for generating file mask for repository. Unsure what would be better - explicitly allowing (source files) or explicitly forbidding (e.g., images, archives). Later can add all source_file from AllExtensions here. CZ: Data pro generování masky souborů pro repozitář. Nevím co by bylo lepší - zda explicitně povolovat (zdrojové soubory) nebo explicitně zakazovat (např. obrázky), archívy. Později zde můžu přidat všechny source_file z AllExtensions.
public class RepoGetFileMascGeneratorData
- Inheritance
-
RepoGetFileMascGeneratorData
- Inherited Members
- Extension Methods
Properties
Cs
Whether to include C# (.cs) files.
public bool Cs { get; set; }
Property Value
Css
Whether to include CSS (.css) files.
public bool Css { get; set; }
Property Value
JsJsx
Whether to include JavaScript (.js, .jsx) files.
public bool JsJsx { get; set; }
Property Value
Json
Whether to include JSON (.json) files.
public bool Json { get; set; }
Property Value
Scss
Whether to include SCSS (.scss) files.
public bool Scss { get; set; }
Property Value
TsTsx
Whether to include TypeScript (.ts, .tsx) files.
public bool TsTsx { get; set; }
Property Value
Yaml
Whether to include YAML (.yaml) files.
public bool Yaml { get; set; }
Property Value
Methods
AllSourceCodes()
Creates a new instance with all source code file types enabled.
public static RepoGetFileMascGeneratorData AllSourceCodes()
Returns
- RepoGetFileMascGeneratorData
A new instance with all flags set to true.
AllTo(bool)
Sets all file type flags to the specified value.
public void AllTo(bool value)
Parameters
valueboolValue to set all flags to.
Generate()
Generates a semicolon-separated file mask string based on enabled file types.
public string Generate()
Returns
- string
File mask string (e.g., ".ts;.tsx;*.cs;").
NumbersOf(bool)
Counts how many file type flags match the specified value.
public int NumbersOf(bool value)
Parameters
valueboolValue to compare each flag against.
Returns
- int
Number of flags matching the value.