Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Added deprecation/moved notice (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kürzeder authored Aug 9, 2023
1 parent 4c55202 commit e347032
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
![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)

## NOTE: This repository has been moved, please use the new repository: [whiteducksoftware/azctx](https://github.com/whiteducksoftware/azctx).

**`azctx`** helps you switch between azure cli subscriptions back and forth:

![azctx demo GIF](assets/img/azctx-demo.png)
Expand Down
8 changes: 8 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ package cmd
import (
"errors"
"os"
"time"

"github.com/StiviiK/azctx/azurecli"
"github.com/StiviiK/azctx/log"
"github.com/StiviiK/azctx/prompt"
"github.com/StiviiK/azctx/updates"
"github.com/StiviiK/azctx/utils"
"github.com/fatih/color"
"github.com/spf13/afero"
"github.com/spf13/cobra"
"go.szostok.io/version/extension"
Expand Down Expand Up @@ -55,6 +57,12 @@ func Execute() {
}

func rootRunE(cmd *cobra.Command, args []string) error {
// Deprecation notice, repository moved to whiteducksoftware/azctx
textColor := color.New(color.FgRed).Add(color.Bold).SprintFunc()
log.Error(textColor("!!! The azctx repository has moved to https://github.com/whiteducksoftware/azctx. Please update your installation. !!!"))
log.Error(textColor("See https://github.com/whiteducksoftware/azctx/blob/main/README.md#migrate-from-stiviikazctx for more information."))
time.Sleep(500 * time.Millisecond)

// Initialize the CLI
cli, err := azurecli.New(afero.NewOsFs())
if err != nil {
Expand Down

0 comments on commit e347032

Please sign in to comment.