Skip to content

Commit c774e67

Browse files
authored
Change module name (#8)
1 parent 8b78f0d commit c774e67

File tree

9 files changed

+37
-27
lines changed

9 files changed

+37
-27
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ cd aws-cli-manager
1818
go build
1919
```
2020

21+
## Install with go install
22+
23+
```bash
24+
go install github.com/user-cube/aws-cli-manager@latest
25+
```
26+
2127
## Install from compiled binary
2228

2329
You can also download the compiled binary from the [releases](https://github.com/user-cube/aws-cli-manager/releases/latest) page.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module aws-cli-manager
1+
module github.com/user-cube/aws-cli-manager
22

33
go 1.21
44

goreleaser.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
builds:
2-
- ldflags: -s -w -X aws-cli-manager/pkg/config.version=${GITHUB_REF#refs/tags/}
3-
goos:
4-
- linux
5-
- darwin
6-
- windows
7-
goarch:
8-
- amd64
9-
- arm64
10-
- 386
2+
- ldflags: -s -w -X github.com/user-cube/aws-cli-manager/pkg/config.version=${GITHUB_REF#refs/tags/}
3+
goos:
4+
- linux
5+
- darwin
6+
- windows
7+
goarch:
8+
- amd64
9+
- arm64
10+
- 386

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
package main
33

44
import (
5-
"aws-cli-manager/pkg/cmd"
5+
"github.com/user-cube/aws-cli-manager/pkg/cmd"
66
)
77

88
// main is the entry point function of the application.

pkg/aws/aws.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
package aws
33

44
import (
5-
"aws-cli-manager/pkg/profile"
6-
"fmt" // Importing fmt for output formatting
7-
"github.com/jedib0t/go-pretty/v6/table" // Importing table for creating tables
8-
"os" // Importing os for file and directory operations
5+
"fmt" // Importing fmt for output formatting
6+
"os" // Importing os for file and directory operations
97
"os/exec"
8+
9+
"github.com/jedib0t/go-pretty/v6/table" // Importing table for creating tables
10+
"github.com/user-cube/aws-cli-manager/pkg/profile"
1011
)
1112

1213
// ListProfiles lists all available AWS profiles and returns a list of them.

pkg/cmd/profile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
package cmd
33

44
import (
5-
"aws-cli-manager/pkg/aws"
65
"github.com/spf13/cobra" // Importing the cobra package for creating CLI applications
6+
"github.com/user-cube/aws-cli-manager/pkg/aws"
77
)
88

99
// profileCmd represents the 'profile' command.

pkg/cmd/root.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
package cmd
33

44
import (
5-
"aws-cli-manager/pkg/aws"
6-
"aws-cli-manager/pkg/config"
7-
"aws-cli-manager/pkg/installer"
8-
"aws-cli-manager/pkg/profile"
95
"fmt"
10-
"github.com/spf13/cobra" // Importing the cobra package for creating CLI applications
116
"os"
7+
8+
"github.com/spf13/cobra" // Importing the cobra package for creating CLI applications
9+
"github.com/user-cube/aws-cli-manager/pkg/aws"
10+
"github.com/user-cube/aws-cli-manager/pkg/config"
11+
"github.com/user-cube/aws-cli-manager/pkg/installer"
12+
"github.com/user-cube/aws-cli-manager/pkg/profile"
1213
)
1314

1415
// rootCmd represents the base command when called without any subcommands.

pkg/installer/validator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
package installer
33

44
import (
5-
"aws-cli-manager/pkg/settings"
65
"errors"
76
"fmt"
87
"log"
98
"os"
109
"os/exec"
1110
"runtime"
11+
12+
"github.com/user-cube/aws-cli-manager/pkg/settings"
1213
)
1314

1415
// InstallAWSCLI checks if AWS CLI is installed and installs it if not.

pkg/profile/profile.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
package profile
22

33
import (
4-
"aws-cli-manager/pkg/models"
5-
"aws-cli-manager/pkg/settings"
6-
"aws-cli-manager/pkg/sharedModules"
74
"fmt"
8-
"github.com/AlecAivazis/survey/v2"
9-
"gopkg.in/yaml.v2"
105
"log"
116
"os"
127
"os/exec"
138
"strings"
9+
10+
"github.com/AlecAivazis/survey/v2"
11+
"github.com/user-cube/aws-cli-manager/pkg/models"
12+
"github.com/user-cube/aws-cli-manager/pkg/settings"
13+
"github.com/user-cube/aws-cli-manager/pkg/sharedModules"
14+
"gopkg.in/yaml.v2"
1415
)
1516

1617
func SelectProfile() {

0 commit comments

Comments
 (0)