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

Rename from magodo/aztfy to Azure/aztfy #26

Merged
merged 2 commits into from
Nov 11, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"os"

tfyschema "github.com/Azure/aztfy/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-provider-azurerm/internal/provider"
"github.com/hashicorp/terraform-provider-azurerm/internal/sdk"
tfyschema "github.com/magodo/aztfy/schema"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Azure Terrafy imports the resources inside a resource group, which are supported

### From Release

Precompiled binaries for Windows, OS X, Linux are available at [Releases](https://github.com/magodo/aztfy/releases).
Precompiled binaries for Windows, OS X, Linux are available at [Releases](https://github.com/Azure/aztfy/releases).

Note: The release is in the format of `.tar.gz`, Windows users might want to have [7zip](https://www.7-zip.org/download.html) installed to extract the files.

### From Go toolchain

```bash
go install github.com/magodo/aztfy@latest
go install github.com/Azure/aztfy@latest
```

## Usage
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/magodo/aztfy
module github.com/Azure/aztfy

go 1.17

Expand Down
2 changes: 1 addition & 1 deletion internal/armtemplate/armtemplate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/magodo/aztfy/internal/armtemplate"
"github.com/Azure/aztfy/internal/armtemplate"
"github.com/stretchr/testify/require"
)

Expand Down
5 changes: 3 additions & 2 deletions internal/meta/hcl_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package meta

import (
"fmt"
"github.com/hashicorp/hcl/v2"
"sort"
"strings"

"github.com/hashicorp/hcl/v2"

"github.com/Azure/aztfy/schema"
"github.com/hashicorp/hcl/v2/hclwrite"
"github.com/magodo/aztfy/schema"
"github.com/zclconf/go-cty/cty"
)

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

import "github.com/magodo/aztfy/internal/config"
import "github.com/Azure/aztfy/internal/config"

type Meta interface {
Init() error
Expand Down
4 changes: 2 additions & 2 deletions internal/meta/meta_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"path/filepath"
"strings"

"github.com/magodo/aztfy/internal/armtemplate"
"github.com/magodo/aztfy/schema"
"github.com/Azure/aztfy/internal/armtemplate"
"github.com/Azure/aztfy/schema"

"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources"
"github.com/hashicorp/go-version"
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/aztfyclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package aztfyclient
import (
"time"

"github.com/magodo/aztfy/internal/config"
"github.com/magodo/aztfy/internal/meta"
"github.com/Azure/aztfy/internal/config"
"github.com/Azure/aztfy/internal/meta"

tea "github.com/charmbracelet/bubbletea"
)
Expand Down
10 changes: 5 additions & 5 deletions internal/ui/importlist/importlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"strings"
"time"

"github.com/magodo/aztfy/internal/meta"
"github.com/magodo/aztfy/internal/ui/aztfyclient"
"github.com/magodo/aztfy/internal/ui/common"
"github.com/magodo/aztfy/mapping"
"github.com/magodo/aztfy/schema"
"github.com/Azure/aztfy/internal/meta"
"github.com/Azure/aztfy/internal/ui/aztfyclient"
"github.com/Azure/aztfy/internal/ui/common"
"github.com/Azure/aztfy/mapping"
"github.com/Azure/aztfy/schema"

"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/list"
Expand Down
5 changes: 3 additions & 2 deletions internal/ui/importlist/importlist_delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package importlist
import (
"errors"
"fmt"
"github.com/magodo/aztfy/internal/ui/common"
"github.com/magodo/aztfy/schema"
"strings"

"github.com/Azure/aztfy/internal/ui/common"
"github.com/Azure/aztfy/schema"

"github.com/charmbracelet/bubbles/list"
tea "github.com/charmbracelet/bubbletea"
)
Expand Down
4 changes: 2 additions & 2 deletions internal/ui/importlist/item.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package importlist

import (
"github.com/magodo/aztfy/internal/meta"
"github.com/magodo/aztfy/internal/ui/common"
"github.com/Azure/aztfy/internal/meta"
"github.com/Azure/aztfy/internal/ui/common"
"github.com/magodo/textinput"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/ui/progress/progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package progress
import (
"fmt"

"github.com/Azure/aztfy/internal/meta"
"github.com/Azure/aztfy/internal/ui/aztfyclient"
"github.com/Azure/aztfy/internal/ui/common"
prog "github.com/charmbracelet/bubbles/progress"
tea "github.com/charmbracelet/bubbletea"
"github.com/magodo/aztfy/internal/meta"
"github.com/magodo/aztfy/internal/ui/aztfyclient"
"github.com/magodo/aztfy/internal/ui/common"
)

type result struct {
Expand Down
12 changes: 6 additions & 6 deletions internal/ui/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ import (
"log"
"os"

"github.com/magodo/aztfy/internal/config"
"github.com/magodo/aztfy/internal/meta"
"github.com/magodo/aztfy/internal/ui/aztfyclient"
"github.com/magodo/aztfy/internal/ui/common"
"github.com/Azure/aztfy/internal/config"
"github.com/Azure/aztfy/internal/meta"
"github.com/Azure/aztfy/internal/ui/aztfyclient"
"github.com/Azure/aztfy/internal/ui/common"
"github.com/mitchellh/go-wordwrap"

"github.com/muesli/reflow/indent"

"github.com/magodo/aztfy/internal/ui/importlist"
"github.com/magodo/aztfy/internal/ui/progress"
"github.com/Azure/aztfy/internal/ui/importlist"
"github.com/Azure/aztfy/internal/ui/progress"

"github.com/charmbracelet/bubbles/spinner"
tea "github.com/charmbracelet/bubbletea"
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"flag"

"github.com/magodo/aztfy/internal/config"
"github.com/magodo/aztfy/internal/ui"
"github.com/Azure/aztfy/internal/config"
"github.com/Azure/aztfy/internal/ui"
)

var (
Expand Down