Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebranding updates #5

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 Stefan Kürzeder <stefan.kuerzeder@whiteduck.de>
Copyright (c) 2022 white duck GmbH <info@whiteduck.de>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

_And please star this repo ⭐_

# azctx(1)
#
## azctx

```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.
Expand Down Expand Up @@ -51,13 +51,17 @@ Use "azctx [command] --help" for more information about a command.

## Installation

### Homebrew
### Homebrew (macOS)

* Install `azctx` with `brew install whiteducksoftware/tap/azctx`

### Chocolatey (Windows)

* Install `azctx` with `brew install stiviik/tap/azctx`
* Install `azctx` with `choco install azctx`

### Linux
### Binary (Windows, Linux, macOS)

* Install the `azctx` binary from the [repository](https://github.com/StiviiK/azctx/releases)
* Install the `azctx` binary from the [repository](https://github.com/whiteducksoftware/azctx/releases)
* Add the `azctx` binary to your PATH

-----
Expand All @@ -66,7 +70,7 @@ Use "azctx [command] --help" for more information about a command.

### Error: `AZURE_CONFIG_DIR is not set / a valid directory. [...]`

Run once `az configure` to create the configuration directory.
Run `az configure` once 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.

Expand All @@ -78,7 +82,7 @@ export AZURE_CONFIG_DIR=$HOME/.azure

## Migrate from stiviik/azctx

Use the following commands to migrate from the old `stiviik/azctx` to the new `whiteducksoftware/azctx` repository:
Are you an existing user of `stiviik/azctx`? Use the following commands to migrate from the old `stiviik/azctx` to the new `whiteducksoftware/azctx` repository:

```bash
brew uninstall azctx
Expand Down
3 changes: 2 additions & 1 deletion azurecli/azurecli.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import (
"errors"
"os"

"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/utils"

"github.com/spf13/afero"
)

Expand Down
4 changes: 2 additions & 2 deletions azurecli/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"os"

"github.com/StiviiK/azctx/log"
"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/log"
"github.com/whiteducksoftware/azctx/utils"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion azurecli/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"fmt"
"strings"

"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/utils"

"github.com/lithammer/fuzzysearch/fuzzy"
)

Expand Down
4 changes: 2 additions & 2 deletions azurecli/tenants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"fmt"

"github.com/StiviiK/azctx/log"
"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/log"
"github.com/whiteducksoftware/azctx/utils"
)

// Tenants returns all tenants
Expand Down
3 changes: 2 additions & 1 deletion azurecli/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package azurecli
import (
"strings"

"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/utils"

"github.com/spf13/afero"
)

Expand Down
7 changes: 4 additions & 3 deletions cmd/login.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cmd

import (
"github.com/StiviiK/azctx/azurecli"
"github.com/StiviiK/azctx/log"
"github.com/StiviiK/azctx/utils"
"github.com/whiteducksoftware/azctx/azurecli"
"github.com/whiteducksoftware/azctx/log"
"github.com/whiteducksoftware/azctx/utils"

"github.com/spf13/afero"
"github.com/spf13/cobra"
)
Expand Down
13 changes: 7 additions & 6 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ import (
"errors"
"os"

"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/whiteducksoftware/azctx/azurecli"
"github.com/whiteducksoftware/azctx/log"
"github.com/whiteducksoftware/azctx/prompt"
"github.com/whiteducksoftware/azctx/updates"
"github.com/whiteducksoftware/azctx/utils"

"github.com/spf13/afero"
"github.com/spf13/cobra"
"go.szostok.io/version/extension"
)

const (
// Respository Owner
owner = "stiviik"
owner = "whiteducksoftware"

// Repository Name
repo = "azctx"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/StiviiK/azctx
module github.com/whiteducksoftware/azctx

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "github.com/StiviiK/azctx/cmd"
import "github.com/whiteducksoftware/azctx/cmd"

func main() {
cmd.Execute()
Expand Down
7 changes: 4 additions & 3 deletions prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ import (
"strings"
templates "text/template"

"github.com/whiteducksoftware/azctx/azurecli"
"github.com/whiteducksoftware/azctx/log"
"github.com/whiteducksoftware/azctx/utils"

"github.com/Masterminds/sprig/v3"
"github.com/StiviiK/azctx/azurecli"
"github.com/StiviiK/azctx/log"
"github.com/StiviiK/azctx/utils"
"github.com/lithammer/fuzzysearch/fuzzy"
"github.com/manifoldco/promptui"
"github.com/olekukonko/ts"
Expand Down
3 changes: 2 additions & 1 deletion utils/cobra.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ package utils
import (
"os"

"github.com/StiviiK/azctx/log"
"github.com/whiteducksoftware/azctx/log"

"github.com/spf13/cobra"
)

Expand Down