Skip to content

Commit

Permalink
Remove program dependant config
Browse files Browse the repository at this point in the history
Remove as it might lead to confusion.
Instead, an example config is provided.
  • Loading branch information
MaxAtoms committed Jan 29, 2022
1 parent 2b1033d commit c562880
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 27 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
[![Build](https://github.com/MaxAtoms/RepoStatusTable/actions/workflows/build.yml/badge.svg)](https://github.com/MaxAtoms/RepoStatusTable/actions/workflows/build.yml)
[![Publish](https://github.com/MaxAtoms/RepoStatusTable/actions/workflows/publish.yml/badge.svg)](https://github.com/MaxAtoms/RepoStatusTable/actions/workflows/publish.yml)

Overview of the status of your repositories in tabular form. Highly customizable.
Overview of the status of your Git repositories in tabular form.
Highly customizable.
Pretty useless if you have a monorepo.

![Demo](./demo.gif)

Expand Down
1 change: 0 additions & 1 deletion src/RepoStatusTable/DependencyInjection/OptionsBindings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ private static IConfigurationRoot ConfigureConfiguration()

configurationBuilder.Sources.Clear();
configurationBuilder
.AddJsonFile( "config.json", true )
.AddJsonFile( GetAppDataDirConfigPath(), true )
.AddJsonFile( GetWorkingDirConfigPath(), true );

Expand Down
25 changes: 0 additions & 25 deletions src/RepoStatusTable/config.json

This file was deleted.

57 changes: 57 additions & 0 deletions src/RepoStatusTable/exampleconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"Repos": {
"ReposRoot": [
"/path/to/a/directory/containing/multiple/repos",
"/another/path/to/a/directory/containing/multiple/repos"
],
"RepoDirs": [
"/path/to/a/git/repo",
"/path/to/another/git/repo"
]
},
"Headline": {
"Enable": true,
"Text": "Some Headline",
"SpectreConsoleFiglet": {
"Alignment": "Center",
"Color": {
"Notation": "RGB",
"Value": "255,0,0"
}
}
},
"Table": {
"RenderMethod": "Spectre Table Live",
"SpectreConsoleTable": {
"Alignment": "Center",
"Border": "Horizontal",
"Expand": false,
"Color": {
"Notation": "RGB",
"Value": "255,0,0"
}
}
},
"CellProviders": {
"DirectoryNameProvider": {
"Position": 0,
"Enable": true
},
"GitBranchProvider": {
"Position": 1,
"Enable": true
},
"FileContentProvider": {
"Position": 2,
"Enable": false,
"Heading": "Version",
"NumberOfLines": 1,
"IgnoreMissingFiles": true,
"Path": "VersionFile.txt"
},
"GitStatusProvider": {
"Position": 3,
"Enable": true
}
}
}

0 comments on commit c562880

Please sign in to comment.