mirror of
https://github.com/starship/starship.git
synced 2026-06-22 02:02:12 +07:00
feat(purescript): add support for spago-next configuration files (#6036)
* update: add purescript spago-next configuration files in upcoming spago projects, the configuration file is changing from spago.dhall -> spago.yaml and spago.lock. This will detect both styles for the time being * fix typo did not update test. spago.yaml -> spago.lock in the spago lock file test case
This commit is contained in:
+12
-10
@@ -3593,20 +3593,22 @@ The `purescript` module shows the currently installed version of [PureScript](ht
|
||||
By default the module will be shown if any of the following conditions are met:
|
||||
|
||||
- The current directory contains a `spago.dhall` file
|
||||
- The current directory contains a `spago.yaml` file
|
||||
- The current directory contains a `spago.lock` file
|
||||
- The current directory contains a file with the `.purs` extension
|
||||
|
||||
### Options
|
||||
|
||||
| Option | Default | Description |
|
||||
| ------------------- | ------------------------------------ | ------------------------------------------------------------------------- |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
||||
| `symbol` | `'<=> '` | The symbol used before displaying the version of PureScript. |
|
||||
| `detect_extensions` | `['purs']` | Which extensions should trigger this module. |
|
||||
| `detect_files` | `['spago.dhall']` | Which filenames should trigger this module. |
|
||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||
| `style` | `'bold white'` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `purescript` module. |
|
||||
| Option | Default | Description |
|
||||
| ------------------- | --------------------------------------------- | ------------------------------------------------------------------------- |
|
||||
| `format` | `'via [$symbol($version )]($style)'` | The format for the module. |
|
||||
| `version_format` | `'v${raw}'` | The version format. Available vars are `raw`, `major`, `minor`, & `patch` |
|
||||
| `symbol` | `'<=> '` | The symbol used before displaying the version of PureScript. |
|
||||
| `detect_extensions` | `['purs']` | Which extensions should trigger this module. |
|
||||
| `detect_files` | `['spago.dhall', 'spago.yaml', 'spago.lock']` | Which filenames should trigger this module. |
|
||||
| `detect_folders` | `[]` | Which folders should trigger this module. |
|
||||
| `style` | `'bold white'` | The style for the module. |
|
||||
| `disabled` | `false` | Disables the `purescript` module. |
|
||||
|
||||
### Variables
|
||||
|
||||
|
||||
Reference in New Issue
Block a user