Skip to content

Commit

Permalink
quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentremond committed Jan 3, 2025
1 parent 8261d43 commit b7f21e1
Show file tree
Hide file tree
Showing 10 changed files with 571 additions and 570 deletions.
10 changes: 6 additions & 4 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@
"isRoot": true,
"tools": {
"fantomas": {
"version": "6.2.3",
"version": "6.3.16",
"commands": [
"fantomas"
]
],
"rollForward": false
},
"paket": {
"version": "8.0.0",
"version": "9.0.2",
"commands": [
"paket"
]
],
"rollForward": false
}
}
}
2 changes: 0 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
root = true

[paket.*]
insert_final_newline = false

Expand Down
1,002 changes: 505 additions & 497 deletions .paket/Paket.Restore.targets

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions Install-as-dotnet-tool.ps1

This file was deleted.

2 changes: 2 additions & 0 deletions build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

dotnet tool restore
dotnet build -- %*

AddToPath ./extLauncher/bin/Debug/
2 changes: 1 addition & 1 deletion extLauncher.Tests/extLauncher.Tests.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<IsPackable>false</IsPackable>
<GenerateProgramFile>false</GenerateProgramFile>
<WarningsAsErrors>FS0025</WarningsAsErrors>
Expand Down
2 changes: 1 addition & 1 deletion extLauncher/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let loadFolder loadFiles conf : Folder option =
}
|> Some

let index loadFiles save conf : Folder option =
let index loadFiles save (conf: FolderConf) : Folder option =
loadFolder loadFiles conf |> Option.map save

let refresh loadFiles save (folder: Folder) : Folder option =
Expand Down
9 changes: 5 additions & 4 deletions extLauncher/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module private Implementations =

let noNull s = if isNull s then "" else s

let printLaunchers folder =
let printLaunchers (folder: Folder) =
let launchers =
Table()
.AddColumns(
Expand Down Expand Up @@ -130,12 +130,13 @@ type IndexCommand() =
inherit Command<IndexSettings>()

override _.Execute(_, settings) =
fun _ ->
(fun _ ->
App.index IO.getFiles Db.upsertFolder {
Path = currentPath
Pattern = Pattern.init settings.Pattern settings.IsRegex
Launchers = Array.empty
}
)
|> withLoader
|> function
| Some folder ->
Expand Down Expand Up @@ -193,8 +194,8 @@ type SetLauncherCommand() =
folder.Launchers.[index] <- launcher
folder
| None -> { folder with Launchers = Array.insertAt 0 launcher folder.Launchers }
|> Db.upsertFolder
|> printLaunchers
|> Db.upsertFolder
|> printLaunchers

0

Expand Down
2 changes: 1 addition & 1 deletion extLauncher/extLauncher.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
<TargetFrameworks>net9.0</TargetFrameworks>
<LangVersion>preview</LangVersion>
<UseAppHost>true</UseAppHost>
<PackAsTool>true</PackAsTool>
Expand Down
106 changes: 50 additions & 56 deletions paket.lock

Large diffs are not rendered by default.

0 comments on commit b7f21e1

Please sign in to comment.