Skip to content

Commit

Permalink
feat(swift): add Podfile extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ilaumjd authored and JanDeDobbeleer committed Sep 26, 2024
1 parent bbaaaef commit 12bc0b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/segments/swift.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion website/docs/segments/languages/swift.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 |

Expand Down

0 comments on commit 12bc0b7

Please sign in to comment.