Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5892210f9d | |||
| 4b40aa64b9 |
4
.vscode/launch.json
vendored
4
.vscode/launch.json
vendored
@@ -10,8 +10,8 @@
|
||||
"request": "launch",
|
||||
"preLaunchTask": "build",
|
||||
// If you have changed target frameworks, make sure to update the program path.
|
||||
"program": "${workspaceFolder}/src/Alma/bin/Debug/net7.0/Alma.dll",
|
||||
"args": [],
|
||||
"program": "${workspaceFolder}/src/Alma/bin/Debug/net8.0/Alma.dll",
|
||||
"args": ["link", "dotconfig", "git", "-d"],
|
||||
"cwd": "${workspaceFolder}/src/Alma",
|
||||
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
|
||||
"console": "internalConsole",
|
||||
|
||||
@@ -117,7 +117,7 @@ public class LinkCommand : RepositoryModuleCommandBase
|
||||
}
|
||||
}
|
||||
|
||||
if(moduleConfiguration?.ExcludeReadme ?? false)
|
||||
if (moduleConfiguration?.ExcludeReadme ?? false)
|
||||
{
|
||||
foreach (var readmeFile in Enum.GetValues<ReadmeFiles>())
|
||||
{
|
||||
@@ -201,7 +201,14 @@ public class LinkCommand : RepositoryModuleCommandBase
|
||||
var filesToLink = new List<ItemToLink>();
|
||||
foreach (var file in currentDirectory.GetFiles())
|
||||
{
|
||||
filesToLink.Add(new ItemToLink(Path.Combine(currentDirectory.FullName, file.Name), Path.Combine(currentTargetDirectory.FullName, file.Name)));
|
||||
if (moduleConfiguration?.Links?.ContainsKey(file.Name) ?? false)
|
||||
{
|
||||
filesToLink.Add(new ItemToLink(file.FullName, _pathHelperService.ResolvePath(moduleConfiguration.Links[file.Name], targetDirectory.FullName)));
|
||||
}
|
||||
else
|
||||
{
|
||||
filesToLink.Add(new ItemToLink(file.FullName, Path.Combine(currentTargetDirectory.FullName, file.Name)));
|
||||
}
|
||||
}
|
||||
|
||||
var subDirLinksToAdd = Enumerable.Empty<ItemToLink>();
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<VersionPrefix>0.0.4</VersionPrefix>
|
||||
<VersionPrefix>0.0.5</VersionPrefix>
|
||||
<VersionSuffix>development</VersionSuffix>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user