- Supported on WASIX and Onyx runtime
- `os.getcwd` for getting the current directory
- Supported on WASIX and Onyx runtime
+- Basic build configurations into package manager.
+ - Configure sources files, runtime, target file,
+ included files, and CLI arguments
+ - Multiple configurations per project.
+ - Build with 'onyx package build <config_name>'
Removals:
return;
}
+ if !Git.test_for_git() {
+ error_print("onyx package requires Git to be installed and accessible.");
+ info_print("", "Ensure Git is installed on your system.\n");
+ os.exit(1);
+ return;
+ }
+
loaded_config_file := false;
defer if loaded_config_file do store_config_file();
}
Git :: struct {
+ test_for_git :: () -> bool {
+ p := os.process_spawn(git_path, .[]);
+ return switch os.process_wait(&p) {
+ case .Success => true;
+ case #default => false;
+ };
+ }
+
get_full_repo_uri :: (package_search: str) -> str {
for Known_Repositories {
for proto: Protocols {