feat(azure): Azure module (#3275)

* Azure module

* make Semantic PR bot happy

* Responding to review

* Changing severity of logging event
This commit is contained in:
Mikkel Mork Hegnhoj
2021-12-06 23:01:33 +01:00
committed by GitHub
parent e3a88a6ec1
commit 365b295433
7 changed files with 323 additions and 0 deletions
+26
View File
@@ -240,6 +240,7 @@ $memory_usage\
$aws\
$gcloud\
$openstack\
$azure\
$env_var\
$crystal\
$custom\
@@ -344,6 +345,31 @@ style = "bold blue"
symbol = "🅰 "
```
## Azure
The `azure` module shows the current Azure Subscription. This is based on showing the name of the default subscription, as defined in the `~/.azure/azureProfile.json` file.
### Options
| Variable | Default | Description |
| ----------------- | ---------------------------------------- | ------------------------------------------ |
| `format` | `"on [$symbol($subscription)]($style) "` | The format for the Azure module to render. |
| `symbol` | `"ﴃ "` | The symbol used in the format. |
| `style` | `"blue bold"` | The style used in the format. |
| `disabled` | `true` | Disables the `azure` module. |
### Example
```toml
# ~/.config/starship.toml
[azure]
disabled = false
format = "on [$symbol($subscription)]($style) "
symbol = "ﴃ "
style = "blue bold"
```
## Battery
The `battery` module shows how charged the device's battery is and its current charging status.