Skip to content

Commit 120c668

Browse files
committed
Moved SRC and Test folders to root directory.
Refactored static ReadLine class to a true singleton. Changed unit tests to use NUnit instead of XUnit. Fixed Ctrl+C issue #59 (Add option to return CTRL+C) Updated version.
2 parents f734a8a + f531195 commit 120c668

7 files changed

Lines changed: 30 additions & 9 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: .NET Core
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 3.1.101
20+
- name: Build with dotnet
21+
run: dotnet build --configuration Release

Artifacts/ReadLine.2.1.3.nupkg

-1 Bytes
Binary file not shown.

ReadLine/ReadLine.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageTags>readline gnu console shell cui</PackageTags>
99
<PackageProjectUrl>https://github.com/tonerdo/readline</PackageProjectUrl>
1010
<RepositoryType>GIT</RepositoryType>
11-
<RepositoryUrl>https://github.com/tonerdo/readline</RepositoryUrl>
11+
<RepositoryUrl>https://github.com/Latency/ReadLine</RepositoryUrl>
1212
<SignAssembly>true</SignAssembly>
1313
<AssemblyOriginatorKeyFile>snKey.snk</AssemblyOriginatorKeyFile>
1414
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>

build.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ param(
33
)
44

55
dotnet restore
6-
dotnet build ".\src\ReadLine" -c $p1
7-
dotnet build ".\src\ReadLine.Demo" -c $p1
8-
dotnet build ".\test\ReadLine.Tests" -c $p1
6+
dotnet build ".\ReadLine" -c $p1
7+
dotnet build ".\ReadLine.Demo" -c $p1
8+
dotnet build ".\ReadLine.Tests" -c $p1

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ if [[ $1 ]]; then
99
fi
1010

1111
dotnet restore
12-
dotnet build ./src/ReadLine -c $CONFIGURATION
13-
dotnet build ./src/ReadLine.Demo -c $CONFIGURATION
14-
dotnet build ./test/ReadLine.Tests -c $CONFIGURATION
12+
dotnet build ./ReadLine -c $CONFIGURATION
13+
dotnet build ./ReadLine.Demo -c $CONFIGURATION
14+
dotnet build ./ReadLine.Tests -c $CONFIGURATION

test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dotnet test .\test\ReadLine.Tests\ReadLine.Tests.csproj
1+
dotnet test .\ReadLine.Tests\ReadLine.Tests.csproj
22
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
22

3-
dotnet test ./test/ReadLine.Tests
3+
dotnet test ./ReadLine.Tests

0 commit comments

Comments
 (0)