mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(mojo): add module for Mojo language (#6108)
* feat: add support to mojo lang * docs: fix mojo formatting * Update src/modules/mojo.rs Co-authored-by: David Knaack <davidkna@users.noreply.github.com> * feat(mojo): parse hash as an independent variable * chore(mojo): fix formatting * chore(mojo): update schema and docs * feat(mojo): use lazy cmd evaluation --------- Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
This commit is contained in:
@@ -1045,6 +1045,25 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"mojo": {
|
||||
"default": {
|
||||
"detect_extensions": [
|
||||
"mojo",
|
||||
"🔥"
|
||||
],
|
||||
"detect_files": [],
|
||||
"detect_folders": [],
|
||||
"disabled": false,
|
||||
"format": "with [$symbol($version )]($style)",
|
||||
"style": "bold 208",
|
||||
"symbol": "🔥 "
|
||||
},
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/MojoConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nats": {
|
||||
"default": {
|
||||
"disabled": true,
|
||||
@@ -4493,6 +4512,52 @@
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"MojoConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"format": {
|
||||
"default": "with [$symbol($version )]($style)",
|
||||
"type": "string"
|
||||
},
|
||||
"symbol": {
|
||||
"default": "🔥 ",
|
||||
"type": "string"
|
||||
},
|
||||
"style": {
|
||||
"default": "bold 208",
|
||||
"type": "string"
|
||||
},
|
||||
"disabled": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"detect_extensions": {
|
||||
"default": [
|
||||
"mojo",
|
||||
"🔥"
|
||||
],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"detect_files": {
|
||||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"detect_folders": {
|
||||
"default": [],
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
},
|
||||
"NatsConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user