mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
feat(swift): add Podfile extension
This commit is contained in:
parent
bbaaaefdbb
commit
12bc0b7237
|
@ -17,7 +17,7 @@ func (s *Swift) Init(props properties.Properties, env runtime.Environment) {
|
|||
s.language = language{
|
||||
env: env,
|
||||
props: props,
|
||||
extensions: []string{"*.swift", "*.SWIFT"},
|
||||
extensions: []string{"*.swift", "*.SWIFT", "Podfile"},
|
||||
commands: []*cmd{
|
||||
{
|
||||
executable: "swift",
|
||||
|
|
|
@ -32,7 +32,7 @@ import Config from "@site/src/components/Config.js";
|
|||
| `missing_command_text` | `string` | | text to display when the command is missing |
|
||||
| `display_mode` | `string` | `context` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when file `extensions` listed are present</li><li>`context`: displays the segment when the environment or files is active</li></ul> |
|
||||
| `version_url_template` | `string` | | a go [text/template][go-text-template] [template][templates] that creates the URL of the version info / release notes |
|
||||
| `extensions` | `[]string` | `*.swift, *.SWIFT` | allows to override the default list of file extensions to validate |
|
||||
| `extensions` | `[]string` | `*.swift, *.SWIFT, Podfile` | allows to override the default list of file extensions to validate |
|
||||
| `folders` | `[]string` | | allows to override the list of folder names to validate |
|
||||
| `cache_version` | `boolean` | `false` | cache the executable's version or not |
|
||||
|
||||
|
|
Loading…
Reference in a new issue