From 914e8e17cd336bd0e6fa1380ec59cad723c40bdd Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Thu, 23 Nov 2023 18:39:03 +0200 Subject: [PATCH] Switch to a new versioning strategy --- .github/workflows/main.yml | 2 +- Changelog.md | 6 +++++- CliFx/CliFx.csproj | 2 +- Directory.Build.props | 1 - 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5334ccc..aac9796 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: uses: Tyrrrz/.github/.github/workflows/nuget.yml@master with: deploy: ${{ inputs.deploy || github.ref_type == 'tag' }} - package-version: ${{ inputs.package-version }} + package-version: ${{ inputs.package-version || (github.ref_type == 'tag' && github.ref_name) || '0.0.0' }} dotnet-version: 8.0.x secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/Changelog.md b/Changelog.md index ed97951..c722691 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,9 @@ # Changelog +> **Important**: +> This changelog is no longer maintained and will be removed in the future. +> Going forward, new versions of this package will have the corresponding release notes published on [GitHub Releases](https://githu.com/Tyrrrz/CliFx/releases). + ## v2.3.5 (16-Nov-2023) - Fixed an issue where calling `CliApplication.RunAsync(IReadOnlyList)` could fail in very specific scenarios on Windows, if there were two global environment variables with the same name but different casing. (Thanks [@alirezanet](https://github.com/alirezanet)) @@ -182,4 +186,4 @@ - Changed `IConsole` interface (and as a result, `SystemConsole` and `VirtualConsole`) to support writing binary data. Instead of `TextReader`/`TextWriter` instances, the streams are now exposed as `StreamReader`/`StreamWriter` which provide the `BaseStream` property that allows raw access. Existing usages inside commands should remain the same because `StreamReader`/`StreamWriter` are compatible with their base classes `TextReader`/`TextWriter`, but if you were using `VirtualConsole` in tests, you may have to update it to the new API. Refer to the readme for more info. - Changed argument binding behavior so that an error is produced if the user provides an argument that doesn't match with any parameter or option. This is done in order to improve user experience, as otherwise the user may make a typo without knowing that their input wasn't taken into account. -- Changed argument binding behavior so that options can be set to multiple argument values while specifying them with mixed naming. For example, `--option value1 -o value2 --option value3` would result in the option being set to corresponding three values, assuming `--option` and `-o` match with the same option. \ No newline at end of file +- Changed argument binding behavior so that options can be set to multiple argument values while specifying them with mixed naming. For example, `--option value1 -o value2 --option value3` would result in the option being set to corresponding three values, assuming `--option` and `-o` match with the same option. diff --git a/CliFx/CliFx.csproj b/CliFx/CliFx.csproj index 18ea70f..9df7b07 100644 --- a/CliFx/CliFx.csproj +++ b/CliFx/CliFx.csproj @@ -10,7 +10,7 @@ Class-first framework for building command-line interfaces command line executable interface framework parser arguments cli app application net core https://github.com/Tyrrrz/CliFx - https://github.com/Tyrrrz/CliFx/blob/master/Changelog.md + https://github.com/Tyrrrz/CliFx/releases/tag/$(Version) favicon.png MIT true diff --git a/Directory.Build.props b/Directory.Build.props index 4ed4d26..42afad5 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,7 +1,6 @@ - 2.3.5 Tyrrrz Copyright (C) Oleksii Holub latest