fix(elixir): match on *.exs files too

the `.exs` file extension is used for Elixir scripts, this also
includes project files and tests in Mix projects
This commit is contained in:
David Hrdlička 2023-01-10 17:11:30 +01:00 committed by Jan De Dobbeleer
parent 86459f9a2f
commit caa2481589
2 changed files with 8 additions and 8 deletions

View file

@ -17,7 +17,7 @@ func (e *Elixir) Init(props properties.Properties, env platform.Environment) {
e.language = language{
env: env,
props: props,
extensions: []string{"*.ex"},
extensions: []string{"*.ex", "*.exs"},
commands: []*cmd{
{
executable: "elixir",

View file

@ -23,13 +23,13 @@ Display the currently active elixir version.
## Properties
| Name | Type | Description |
| ---------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
| `fetch_version` | `boolean` | fetch the flutter version - defaults to `true` |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.ex` files are present (**default**)</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 |
| Name | Type | Description |
| ---------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `home_enabled` | `boolean` | display the segment in the HOME folder or not - defaults to `false` |
| `fetch_version` | `boolean` | fetch the flutter version - defaults to `true` |
| `missing_command_text` | `string` | text to display when the command is missing - defaults to empty |
| `display_mode` | `string` | <ul><li>`always`: the segment is always displayed</li><li>`files`: the segment is only displayed when `*.ex` or `*.exs` files are present (**default**)</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 |
## Template ([info][templates])