diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 05d1e48..51d1d2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,10 @@ on: push: branches: - master + - dev - boilerplate + - update + - version pull_request: concurrency: diff --git a/.vscode/settings.json b/.vscode/settings.json index 4044afc..fec09cc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -132,6 +132,8 @@ "random": "cpp", "ranges": "cpp", "ratio": "cpp", + "rc.h": "c", + "result_codes_.h": "c", "semaphore": "cpp", "set": "cpp", "setenv.h": "c", diff --git a/CHANGES.md b/CHANGES.md index 3e102b0..cd31c6c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,10 @@ # **realpath** Changes +## 0.1.0 - 6th August 2026 + + + ## 0.0.3 - 5th August 2026 * Added modular GitHub Actions CI (**ci.yml** / **ci-cell.yml**) for Windows (Windows-only tool); diff --git a/CMakeLists.txt b/CMakeLists.txt index 127c7ff..ca826c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ # Purpose: Top-level CMake lists file for realpath # # Created: 31st December 2024 -# Updated: 3rd August 2026 +# Updated: 5th August 2026 # # ######################################################################## # diff --git a/realpath.cpp b/realpath.cpp index dcd0ba2..22dbf4a 100644 --- a/realpath.cpp +++ b/realpath.cpp @@ -19,8 +19,8 @@ #define REALPATH_VER_MAJOR 0 -#define REALPATH_VER_MINOR 0 -#define REALPATH_VER_PATCH 3 +#define REALPATH_VER_MINOR 1 +#define REALPATH_VER_PATCH 0 int main(int argc, char* argv[]) @@ -42,6 +42,21 @@ int main(int argc, char* argv[]) return EXIT_SUCCESS; } else + if (0 == std::strcmp("--version", argv[1])) + { + std::cout + << program_name + << " v" + << REALPATH_VER_MAJOR + << '.' + << REALPATH_VER_MINOR + << '.' + << REALPATH_VER_PATCH + << std::endl; + + return EXIT_SUCCESS; + } + else { winstl::absolute_path abs_path(argv[1]);