This repository has been archived by the owner on Aug 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
135 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
MIT License | ||
Copyright (c) 2022 Stefan Kürzeder <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
MIT License | ||
|
||
Copyright (c) 2022 Stefan Kürzeder <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,73 @@ | ||
# `azctx`: Power tool for the Azure CLI | ||
|
||
![Proudly written in Go](https://img.shields.io/badge/written%20in-go-29BEB0.svg) | ||
![Latest GitHub release](https://img.shields.io/github/v/release/StiviiK/azctx.svg) | ||
![GitHub stars](https://img.shields.io/github/stars/stiviik/azctx.svg?label=github%20stars) | ||
![GitHub contributors](https://img.shields.io/github/contributors/stiviik/azctx.svg?label=github%20contributors) | ||
|
||
**`azctx`** helps you switch between azure cli subscriptions back and forth: | ||
|
||
![azctx demo GIF](assets/img/azctx-demo.png) | ||
|
||
|
||
# azctx(1) | ||
# | ||
```bash | ||
azctx is a CLI tool for managing azure cli subscriptions. | ||
It is a helper for the azure cli and provides a simple interface for managing subscriptions. | ||
Pass a subscription name to select a specific subscription. | ||
Pass - to switch to the previous subscription. | ||
|
||
Usage: | ||
azctx [- / -- NAME] [flags] | ||
azctx [command] | ||
|
||
Available Commands: | ||
completion Generate the autocompletion script for the specified shell | ||
help Help about any command | ||
login Login to Azure | ||
version Print the CLI version | ||
|
||
Flags: | ||
-c, --current Display the current active subscription | ||
--filter-tenant-level Filter tenant level accounts with no available subscriptions (default true) | ||
-h, --help help for azctx | ||
-r, --refresh Re-Authenticate and refresh the subscriptions. | ||
Deprecated. Please use azctx login instead. | ||
-s, --short Use a short prompt | ||
|
||
Use "azctx [command] --help" for more information about a command. | ||
``` | ||
----- | ||
## Installation | ||
### Homebrew | ||
* Install `azctx` with `brew install stiviik/tap/azctx` | ||
### Linux | ||
* Install the `azctx` binary from the [repository](https://github.com/StiviiK/azctx/releases) | ||
* Add the `azctx` binary to your PATH | ||
----- | ||
## Troubleshooting | ||
### Error: `AZURE_CONFIG_DIR is not set / a valid directory. [...]` | ||
Run once `az configure` to create the configuration directory. | ||
Check the [Microsoft Documentation](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-file) for the correct path to the azure cli config directory and export it as AZURE_CONFIG_DIR environment variable. | ||
```bash | ||
export AZURE_CONFIG_DIR=$HOME/.azure | ||
``` | ||
----- | ||
## Todos | ||
* [ ] Implement Unit Tests | ||
# `azctx`: Power tool for the Azure CLI | ||
|
||
![Proudly written in Go](https://img.shields.io/badge/written%20in-go-29BEB0.svg) | ||
![Latest GitHub release](https://img.shields.io/github/v/release/StiviiK/azctx.svg) | ||
![GitHub stars](https://img.shields.io/github/stars/stiviik/azctx.svg?label=github%20stars) | ||
![GitHub contributors](https://img.shields.io/github/contributors/stiviik/azctx.svg?label=github%20contributors) | ||
|
||
**`azctx`** helps you switch between azure cli subscriptions back and forth: | ||
|
||
![azctx demo GIF](assets/img/azctx-demo.png) | ||
|
||
|
||
# azctx(1) | ||
# | ||
```bash | ||
azctx is a CLI tool for managing azure cli subscriptions. | ||
It is a helper for the azure cli and provides a simple interface for managing subscriptions. | ||
Pass a subscription name to select a specific subscription. | ||
Pass - to switch to the previous subscription. | ||
|
||
Usage: | ||
azctx [- / -- NAME] [flags] | ||
azctx [command] | ||
|
||
Available Commands: | ||
completion Generate the autocompletion script for the specified shell | ||
help Help about any command | ||
login Login to Azure | ||
version Print the CLI version | ||
|
||
Flags: | ||
-c, --current Display the current active subscription | ||
--filter-tenant-level Filter tenant level accounts with no available subscriptions (default true) | ||
-h, --help help for azctx | ||
-r, --refresh Re-Authenticate and refresh the subscriptions. | ||
Deprecated. Please use azctx login instead. | ||
-s, --short Use a short prompt | ||
|
||
Use "azctx [command] --help" for more information about a command. | ||
``` | ||
----- | ||
## Installation | ||
### Homebrew | ||
* Install `azctx` with `brew install stiviik/tap/azctx` | ||
### Linux | ||
* Install the `azctx` binary from the [repository](https://github.com/StiviiK/azctx/releases) | ||
* Add the `azctx` binary to your PATH | ||
----- | ||
## Troubleshooting | ||
### Error: `AZURE_CONFIG_DIR is not set / a valid directory. [...]` | ||
Run once `az configure` to create the configuration directory. | ||
Check the [Microsoft Documentation](https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-file) for the correct path to the azure cli config directory and export it as AZURE_CONFIG_DIR environment variable. | ||
```bash | ||
export AZURE_CONFIG_DIR=$HOME/.azure | ||
``` | ||
----- | ||
## Todos | ||
* [ ] Implement Unit Tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.