Commit graph

169 commits

Author SHA1 Message Date
c151d29b46
- Removed unused exception UnsupportedComponentTypeException in \ncc\Exceptions in favor of NotSupportedException
- Removed unused exception `UnsupportedPackageException` in `\ncc\Exceptions` (not used)
 - Removed unused exception `UnsupportedRemoteTypeSource` in `\ncc\Exceptions` (not used)
 - Removed unused exception `UnsupportedProjectTypeException` in `\ncc\Exceptions` (not used)
2023-08-20 21:20:13 -04:00
14541123c0
self::UNSUPPORTED_EXTENSION_VERSION, 2023-08-20 17:38:36 -04:00
57305c8b52
Removed GithubServiceException.php 2023-08-19 12:57:15 -04:00
85d4a63248
- Removed unused exception GitTagsException in \ncc\Exceptions in favor of GitException 2023-08-19 12:56:31 -04:00
00dcc7e004
- Removed unused exception GitCloneException in \ncc\Exceptions in favor of GitException
- Removed unused exception `GitCheckoutException` in `\ncc\Exceptions` in favor of `GitException`
 - Removed unused exception `GithubServiceException` in `\ncc\Exceptions` in favor of `GitException`
 - Updated `\ncc\Classes > GitClient > cloneRepository()` to throw `GitException` instead of `GitCloneException`
 - Updated `\ncc\Classes > GitClient > checkout()` to throw `GitException` instead of `GitCheckoutException`
 - Added new exception `GitException` in `\ncc\Exceptions` to replace all git related exceptions
2023-08-19 12:52:55 -04:00
79c02e5132
Refactored Runtime to an extent, added plan (exceptions_plans.txt) 2023-08-19 12:34:22 -04:00
348ca2d4a1
- Implemented interface BytecodeObjectInterface into \ncc\Objects\ProjectConfiguration > Assembly
- Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration\UpdateSource > Repository`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration\ExecutionPolicy > Execute`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration\ExecutionPolicy > ExitHandle`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration\ExecutionPolicy > ExitHandlers`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration\Build > BuildConfiguration`
2023-08-19 12:24:42 -04:00
15fd06d2d0
- Implemented Bytecode compiling properly into \ncc\Objects > ProjectConfiguration
- Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > Installer`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > ExecutionPolicy`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > Dependecy`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > Compiler`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > Build`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > UpdateSource`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\ProjectConfiguration > Project`
2023-08-19 11:33:51 -04:00
7138913ef3
- Implemented interface BytecodeObjectInterface into \ncc\Objects > ExecutionPointers
- Implemented interface `BytecodeObjectInterface` into `\ncc\Objects > DefinedRemoteSource`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\Vault > Entry`
 - Corrected code-smell and code style issues in `\ncc\Objects\Vault\Password > AccessToken`
 - Corrected code-smell and code style issues in `\ncc\Objects\Vault\Password > UsernamePassword`
 - Extended `PasswordInterface` with `BytecodeObjectInterface`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects\SymlinkDictionary > SymlinkEntry`
2023-08-19 08:38:13 -04:00
8df38191c6
Fixes 2023-08-19 05:15:06 -04:00
b4ae29d0b3
- Implemented interface BytecodeObjectInterface into \ncc\Objects > Package
- Implemented interface `BytecodeObjectInterface` into `\ncc\Objects > Vault`
 - Corrected code-smell and code style issues in `\ncc\Objects > Vault`
 - Implemented interface `BytecodeObjectInterface` into `\ncc\Objects > ProjectConfiguration`
 - Removed unused class `\ncc\Objects > SymlinkDictionary`
2023-08-19 04:48:23 -04:00
57009c115f
- Corrected code-smell and code style issues in \ncc\Objects > Package
- Corrected code-smell and code style issues in `\ncc\Classes\NccExtension > PackageCompiler`
 - Corrected code-smell and code style issues in `\ncc\CLI > PackageManagerMenu`
 - Corrected code-smell and code style issues in `\ncc\Classes\PhpExtension > PhpCompiler`
 - Corrected code-smell and code style issues in `\ncc\Classes\PhpExtension > PhpInstaller`
 - Corrected code-smell and code style issues in `\ncc\Classes\PhpExtension > PhpRunner`
 - Corrected code-smell and code style issues in `\ncc\Objects > ProjectConfiguraiton`
 - Corrected code-smell and code style issues in `\ncc\Managers > ProjectManager`
 - Corrected code-smell and code style issues in `\ncc\Classes\Extensions\PythonExtension > Python2Runner`
 - Corrected code-smell and code style issues in `\ncc\Classes\Extensions\PythonExtension > Python3Runner`
 - Corrected code-smell and code style issues in `\ncc\Classes\Extensions\PythonExtension > PythonRunner`
 - Corrected code-smell and code style issues in `\ncc\Interfaces > RunnerInterface`
2023-08-19 04:39:39 -04:00
0820cd3c32
- Corrected code-smell and code style issues in \ncc\Utilities > IO
- Corrected code-smell and code style issues in `\ncc > ncc`
 - Corrected code-smell and code style issues in `\ncc\CLI > Main`
 - Removed unused exception `FileNotFoundException` in `\ncc\CLI > HelpMenu`
 - Corrected code-smell and code style issues in `\ncc\Managers > ProjectManager`
 - Corrected code-smell and code style issues in `\ncc\Objects\NccVersionInformation > Component`
 - Corrected code-smell and code style issues in `\ncc\Objects\Package > Component`
 - Corrected code-smell and code style issues in `\ncc\Managers > ConfigurationManager`
 - Corrected code-smell and code style issues in `\ncc\Managers > CredentialManager`
 - Refactored `\ncc\Utilities > PathFinder` to remove all Win32 references
 - Corrected code-smell and code style issues in `\ncc\Objects > ExecutionPointers`
 - Corrected code-smell and code style issues in `\ncc\Managers > ExecutionPointerManager`
 - Corrected code-smell and code style issues in `\ncc\Utilities > Functions`
 - Corrected code-smell and code style issues in `\ncc\Managers > PackageManager`
 - Removed `FileNotFoundException` and `DirectoryNotFoundException` from `\ncc\Exceptions`
 - Removed the use of `InvalidScopeException` across the project
 - Removed references of Win32 from the project as Windows is not going supported
 - Added new exception `PathNotFoundException` and implemented it in replacement for `DirectoryNotFoundException` and
   `FileNotFoundException` in `\ncc\Exceptions`
 - Corrected code-smell and code style issues in `src/installer/hash_check.php`
 - Renamed `Abstracts` namespace to `Enums`
 - Updated class type to "final class" in `\ncc\Enums\Options > BuildConfigurationValues`
 - Updated class type to "final class" in `\ncc\Enums\Options > InitializeProjectOptions`
 - Updated class type to "final class" in `\ncc\Enums\Options > InstallPackageOptions`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > AssemblyConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > BuildConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > DateTimeConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > InstallConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > RuntimeConstants`
 - Updated class type to "final class" in `\ncc\Enums > AuthenticationType`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensionDefaultVersions`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensions`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensionSupportedVersions`
 - Updated class type to "final class" in `\ncc\Enums > ComponentDataType`
 - Updated class type to "final class" in `\ncc\Enums > ComponentFileExtensions`
 - Updated class type to "final class" in `\ncc\Enums > ComposerPackageTypes`
 - Updated class type to "final class" in `\ncc\Enums > ComposerStabilityTypes`
 - Updated class type to "final class" in `\ncc\Enums > EncoderType`
 - Updated class type to "final class" in `\ncc\Enums > ExceptionCodes`
 - Updated class type to "final class" in `\ncc\Enums > HttpRequestType`
 - Updated class type to "final class" in `\ncc\Enums > HttpStatusCodes`
 - Updated class type to "final class" in `\ncc\Enums > LogLevel`
 - Updated class type to "final class" in `\ncc\Enums > NccBuildFlags`
 - Updated class type to "final class" in `\ncc\Enums > PackageStandardVersions`
 - Updated class type to "final class" in `\ncc\Enums > PackageStructureVersions`
 - Updated class type to "final class" in `\ncc\Enums > ProjectType`
 - Updated class type to "final class" in `\ncc\Enums > RegexPattern`
 - Updated class type to "final class" in `\ncc\Enums > RemoteSourceType`
 - Updated class type to "final class" in `\ncc\Enums > Runners`
 - Updated class type to "final class" in `\ncc\Enums > Scopes`
 - Updated class type to "final class" in `\ncc\Enums > Versions`
 - Corrected code-smell and code style issues in `\ncc\Classes > NccExtension > ConstantCompiler`
 - Corrected code-smell and code style issues in `\ncc\Classes > GitlabExtension > GitlabService`
 - Corrected code-smell and code style issues in `\ncc\Classes > GithubExtension > GithubService`
2023-08-19 02:42:22 -04:00
983e34f58e
- Corrected code-smell and code style issues in src/installer/hash_check.php 2023-08-18 00:37:08 -04:00
8e44a8c7c9
- Renamed Abstracts namespace to Enums
- Updated class type to "final class" in `\ncc\Enums\Options > BuildConfigurationValues`
 - Updated class type to "final class" in `\ncc\Enums\Options > InitializeProjectOptions`
 - Updated class type to "final class" in `\ncc\Enums\Options > InstallPackageOptions`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > AssemblyConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > BuildConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > DateTimeConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > InstallConstants`
 - Updated class type to "final class" in `\ncc\Enums\SpecialConstants > RuntimeConstants`
 - Updated class type to "final class" in `\ncc\Enums > AuthenticationType`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensionDefaultVersions`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensions`
 - Updated class type to "final class" in `\ncc\Enums > CompilerExtensionSupportedVersions`
 - Updated class type to "final class" in `\ncc\Enums > ComponentDataType`
 - Updated class type to "final class" in `\ncc\Enums > ComponentFileExtensions`
 - Updated class type to "final class" in `\ncc\Enums > ComposerPackageTypes`
 - Updated class type to "final class" in `\ncc\Enums > ComposerStabilityTypes`
 - Updated class type to "final class" in `\ncc\Enums > EncoderType`
 - Updated class type to "final class" in `\ncc\Enums > ExceptionCodes`
 - Updated class type to "final class" in `\ncc\Enums > HttpRequestType`
 - Updated class type to "final class" in `\ncc\Enums > HttpStatusCodes`
 - Updated class type to "final class" in `\ncc\Enums > LogLevel`
 - Updated class type to "final class" in `\ncc\Enums > NccBuildFlags`
 - Updated class type to "final class" in `\ncc\Enums > PackageStandardVersions`
 - Updated class type to "final class" in `\ncc\Enums > PackageStructureVersions`
 - Updated class type to "final class" in `\ncc\Enums > ProjectType`
 - Updated class type to "final class" in `\ncc\Enums > RegexPattern`
 - Updated class type to "final class" in `\ncc\Enums > RemoteSourceType`
 - Updated class type to "final class" in `\ncc\Enums > Runners`
 - Updated class type to "final class" in `\ncc\Enums > Scopes`
 - Updated class type to "final class" in `\ncc\Enums > Versions`
2023-08-18 00:22:15 -04:00
3afcb731fe
- Corrected code-smell and code style issues in \ncc\Classes > NccExtension > ConstantCompiler 2023-08-17 16:09:42 -04:00
309d37fe7d
- Corrected code-smell and code style issues in \ncc\Classes > GitlabExtension > GitlabService 2023-08-17 15:44:56 -04:00
ae373c6f70
- Corrected code-smell and code style issues in \ncc\Classes > GithubExtension > GithubService 2023-08-17 14:40:49 -04:00
bc1156278e
Bumped version to 1.0.4 2023-08-17 14:35:20 -04:00
4dc1463d26
- Corrected code-smell and code style issues in \ncc\Classes > ComposerExtension > ComposerSourceBuiltin
- `LICENSE.md` & `license.md` are now detected as license files in  `\ncc\Classes\ComposerExtension > ComposerSourceBuiltin > convertProject()`
2023-08-17 14:32:47 -04:00
84e5e5a346
- Corrected code-smell and code style issues in \ncc\Classes > BashExtension > BashRunner 2023-08-17 14:08:22 -04:00
d4709443f7
Corrected code-smell and code style issues in \ncc\Classes > GitClient 2023-08-17 14:05:14 -04:00
393078cd9e
- Corrected code-smell and code style issues in \ncc\Classes > HttpClient
- Fixed MITM attack vector in `\ncc\Classes > HttpClient > prepareCurl()`
2023-08-17 14:02:41 -04:00
56c59ba4f4
Updated \ncc\Classes > GitClient > checkout() to update submoudles. 2023-07-13 19:24:28 -04:00
05b46296d7
Fixed issue in \ncc\Managers > ExecutionPointerManager > executeUnit() where if ttyMode is enabled in a non-tty environment, the process will throw an exception "/etc/ncc/ThirdParty/Symfony/Process/Process.php:1019 Error: TTY mode requires /dev/tty to be read/writable.", now ncc will display a warning if TTY mode cannot be enabled 2023-07-11 20:56:40 -04:00
277a09529e
Experimental fix for ExecCommand 2023-07-11 20:40:47 -04:00
05d05e33b1
Updated \ncc\Classes > GitClient > cloneRepositor() to clone submodules recursively by default 2023-07-11 19:20:11 -04:00
ffa48ca0aa
Updated defuse\php-encryption to version 2.4.0 2023-07-11 18:31:54 -04:00
56a220f704
Bumped version to 1.0.3 2023-07-11 18:23:33 -04:00
b287ba5457
Refactored \ncc\Objects > PackageLock 2023-07-11 18:22:28 -04:00
Netkas
e77b806724 Updated \ncc\Managers > PackageManager to display more logging messages 2023-03-07 19:59:39 -05:00
Netkas
12afa07e28 Updated \ncc\Managers > ExecutionPointerManager > executeUnit to set processes to run forever if a timeout is not set/null 2023-02-28 21:21:36 -05:00
Netkas
efc3257a41 Minor correction 2023-02-28 20:20:12 -05:00
Netkas
3a7738140f Updated ExecutionPointerManager to handle null exit codes 2023-02-28 20:05:06 -05:00
Netkas
712020b129 Fixed issue where error states are not properly handled in ExecutionPointerManager issue [#44](https://git.n64.cc/nosial/ncc/-/issues/44) 2023-02-24 22:32:28 -05:00
Netkas
40497db58c Updated Symfony\Yaml to version 6.2.5 2023-02-24 22:18:34 -05:00
Netkas
d272fe74a9 Updated Symfony\Uid to version 6.2.5 2023-02-24 22:12:24 -05:00
Netkas
0f26bdc960 Updated Symfony\Process to version 6.5.2 2023-02-24 22:04:50 -05:00
Netkas
28e673d5a4 Updated Symfony\polyfill-uuid to version 1.27.0 2023-02-24 22:01:07 -05:00
Netkas
5f7440166e Updated Symfony\polyfill-mbstring to version 1.27.0 2023-02-24 21:57:51 -05:00
Netkas
16aad8eb38 Updated Symfony\polyfill-ctype to version 1.27.0 2023-02-24 21:51:14 -05:00
Netkas
177b6b5238 Updated Symfony\Filesystem to version 6.2.5 2023-02-24 21:46:51 -05:00
Netkas
7f73c45920 Bumped version to 1.0.2 2023-02-24 21:42:39 -05:00
Netkas
8bd4d304cf Updated version.json 2023-02-07 16:24:12 -05:00
Netkas
4740a77de5 Added pass-through arguments to composer command, all arguments beginning with --composer- will be passed to the composer command, for example --composer-dev will be passed as --dev to the composer command 2023-02-07 16:23:20 -05:00
Netkas
6381ec509c Minor improvements to the CLI interface including fixing --version 2023-02-07 16:07:52 -05:00
Netkas
da9e615418 Properly implemented composer.enable_internal_composer so that warnings regarding improper configuration values are not thrown 2023-02-07 15:58:43 -05:00
Netkas
1212ab49c5 Added file downloads progress 2023-02-07 15:47:34 -05:00
Netkas
09b8c091c6 File downloads now cache the URL as a pointer to the file reducing the number of times the same file is downloaded 2023-02-07 15:34:08 -05:00
Netkas
070ad4caca Fixed issue where dependency conflicts are thrown even when --reinstall is used 2023-02-07 15:28:44 -05:00