From 161ef357a2df20cc0a62df3e02c8cd30cec01e35 Mon Sep 17 00:00:00 2001 From: Netkas Date: Tue, 3 Oct 2023 17:12:27 -0400 Subject: [PATCH] Added beta flag --- src/ncc/CLI/Main.php | 5 +++++ src/ncc/Enums/Flags/NccBuildFlags.php | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/src/ncc/CLI/Main.php b/src/ncc/CLI/Main.php index 3711509..0c08337 100644 --- a/src/ncc/CLI/Main.php +++ b/src/ncc/CLI/Main.php @@ -129,6 +129,11 @@ Console::outWarning('This is an unstable build of ncc, expect some features to not work as expected'); } + if(in_array(NccBuildFlags::BETA, NCC_VERSION_FLAGS, true)) + { + Console::outWarning('This is a beta build of ncc, expect some features to not work as expected'); + } + if(isset(self::$args['version'])) { self::displayVersion(); diff --git a/src/ncc/Enums/Flags/NccBuildFlags.php b/src/ncc/Enums/Flags/NccBuildFlags.php index 4f4fa15..9a7e869 100644 --- a/src/ncc/Enums/Flags/NccBuildFlags.php +++ b/src/ncc/Enums/Flags/NccBuildFlags.php @@ -29,4 +29,9 @@ * and can cause errors */ public const UNSTABLE = 'unstable'; + + /** + * Indicates if the build is currently in beta testing phase + */ + public const BETA = 'beta'; } \ No newline at end of file