mirror of
https://github.com/frosch95/K8sFileBrowser.git
synced 2026-04-11 12:58:22 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a696152667 | |||
| 491127d460 |
@@ -133,11 +133,11 @@ public class MainWindowViewModel : ViewModelBase
|
||||
{
|
||||
// read the file information when the path changes
|
||||
this
|
||||
.WhenAnyValue(c => c.SelectedContainer)
|
||||
.WhenAnyValue(c => c.SelectedContainer, c => c.SelectedPath)
|
||||
.Throttle(new TimeSpan(10))
|
||||
.Select(x => x == null
|
||||
.Select(x => x.Item1 == null || x.Item2 == null
|
||||
? new List<FileInformation>()
|
||||
: GetFileInformation(kubernetesService, SelectedPath!, SelectedPod!, SelectedNamespace!, x))
|
||||
: GetFileInformation(kubernetesService, x.Item2, SelectedPod!, SelectedNamespace!, x.Item1))
|
||||
.ObserveOn(RxApp.MainThreadScheduler)
|
||||
.Subscribe(x => FileInformation = x);
|
||||
}
|
||||
|
||||
@@ -31,20 +31,11 @@ class Build : NukeBuild
|
||||
|
||||
|
||||
Target Clean => _ => _
|
||||
.Before(Restore)
|
||||
.Executes(() =>
|
||||
{
|
||||
OutputDirectory.DeleteDirectory();
|
||||
});
|
||||
|
||||
Target Restore => _ => _
|
||||
.Executes(() =>
|
||||
{
|
||||
DotNet($"restore {ProjectFile}");
|
||||
//DotNetTasks.DotNetRestore(new DotNetRestoreSettings());
|
||||
});
|
||||
|
||||
|
||||
Target PublishWin => _ => _
|
||||
.DependsOn(Clean)
|
||||
.Executes(() =>
|
||||
@@ -62,8 +53,7 @@ class Build : NukeBuild
|
||||
.SetCopyright("Copyright (c) 2023")
|
||||
.SetVersion(Version)
|
||||
.SetProcessArgumentConfigurator(_ => _
|
||||
.Add("-p:IncludeNativeLibrariesForSelfExtract=true"))
|
||||
.EnableNoRestore());
|
||||
.Add("-p:IncludeNativeLibrariesForSelfExtract=true")));
|
||||
|
||||
WinOutputDirectory.ZipTo(
|
||||
WinZip,
|
||||
@@ -73,7 +63,7 @@ class Build : NukeBuild
|
||||
});
|
||||
|
||||
Target PublishLinux => _ => _
|
||||
.DependsOn(Clean)
|
||||
.DependsOn(Clean)
|
||||
.Executes(() =>
|
||||
{
|
||||
DotNetPublish(s => s
|
||||
@@ -89,8 +79,7 @@ class Build : NukeBuild
|
||||
.SetCopyright("Copyright (c) 2023")
|
||||
.SetVersion(Version)
|
||||
.SetProcessArgumentConfigurator(_ => _
|
||||
.Add("-p:IncludeNativeLibrariesForSelfExtract=true"))
|
||||
.EnableNoRestore());
|
||||
.Add("-p:IncludeNativeLibrariesForSelfExtract=true")));
|
||||
|
||||
LinuxOutputDirectory.TarGZipTo(
|
||||
LinuxGz,
|
||||
|
||||
Reference in New Issue
Block a user