feat(swift): add Podfile extension

This commit is contained in:
ilaumjd 2024-09-26 21:46:54 +07:00 committed by Jan De Dobbeleer
parent bbaaaefdbb
commit 12bc0b7237
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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 |