mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat: add Haxe support (#4395)
* Add Haxe support * avoid unwrap * fix doc formatting * removed extra newline * fixed formatter and linter issues * fixed config file * better version of detecting contents of .haxerc Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * removed openfl related defaults from detect_files Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * fixed formatting * reworked reading .haxerc with fallback to haxe --version * fixed formatting * added fallback to executable for dev paths in .haxerc * fixed linter issue * added support for Windows paths * use or_else Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * use shorter version with `?` Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * simplified regex check removed check for "null" string * fixed format Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
@@ -658,6 +658,33 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"haxe": {
|
||||
"default": {
|
||||
"detect_extensions": [
|
||||
"hx",
|
||||
"hxml"
|
||||
],
|
||||
"detect_files": [
|
||||
"haxelib.json",
|
||||
"hxformat.json",
|
||||
".haxerc"
|
||||
],
|
||||
"detect_folders": [
|
||||
".haxelib",
|
||||
"haxe_libraries"
|
||||
],
|
||||
"disabled": false,
|
||||
"format": "via [$symbol($version )]($style)",
|
||||
"style": "bold fg:202",
|
||||
"symbol": "⌘ ",
|
||||
"version_format": "v${raw}"
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/HaxeConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"helm": {
|
||||
"default": {
|
||||
"detect_extensions": [],
|
||||
@@ -3238,6 +3265,63 @@
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"HaxeConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"format": {
|
||||
"default": "via [$symbol($version )]($style)",
|
||||
"type": "string"
|
||||
},
|
||||
"version_format": {
|
||||
"default": "v${raw}",
|
||||
"type": "string"
|
||||
},
|
||||
"symbol": {
|
||||
"default": "⌘ ",
|
||||
"type": "string"
|
||||
},
|
||||
"style": {
|
||||
"default": "bold fg:202",
|
||||
"type": "string"
|
||||
},
|
||||
"disabled": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"detect_extensions": {
|
||||
"default": [
|
||||
"hx",
|
||||
"hxml"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"detect_files": {
|
||||
"default": [
|
||||
"haxelib.json",
|
||||
"hxformat.json",
|
||||
".haxerc"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"detect_folders": {
|
||||
"default": [
|
||||
".haxelib",
|
||||
"haxe_libraries"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"HelmConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user