File tree 9 files changed +37
-27
lines changed
9 files changed +37
-27
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ cd aws-cli-manager
18
18
go build
19
19
```
20
20
21
+ ## Install with go install
22
+
23
+ ``` bash
24
+ go install github.com/user-cube/aws-cli-manager@latest
25
+ ```
26
+
21
27
## Install from compiled binary
22
28
23
29
You can also download the compiled binary from the [ releases] ( https://github.com/user-cube/aws-cli-manager/releases/latest ) page.
Original file line number Diff line number Diff line change 1
- module aws-cli-manager
1
+ module github.com/user-cube/ aws-cli-manager
2
2
3
3
go 1.21
4
4
Original file line number Diff line number Diff line change 1
1
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
Original file line number Diff line number Diff line change 2
2
package main
3
3
4
4
import (
5
- "aws-cli-manager/pkg/cmd"
5
+ "github.com/user-cube/ aws-cli-manager/pkg/cmd"
6
6
)
7
7
8
8
// main is the entry point function of the application.
Original file line number Diff line number Diff line change 2
2
package aws
3
3
4
4
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
9
7
"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"
10
11
)
11
12
12
13
// ListProfiles lists all available AWS profiles and returns a list of them.
Original file line number Diff line number Diff line change 2
2
package cmd
3
3
4
4
import (
5
- "aws-cli-manager/pkg/aws"
6
5
"github.com/spf13/cobra" // Importing the cobra package for creating CLI applications
6
+ "github.com/user-cube/aws-cli-manager/pkg/aws"
7
7
)
8
8
9
9
// profileCmd represents the 'profile' command.
Original file line number Diff line number Diff line change 2
2
package cmd
3
3
4
4
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"
9
5
"fmt"
10
- "github.com/spf13/cobra" // Importing the cobra package for creating CLI applications
11
6
"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"
12
13
)
13
14
14
15
// rootCmd represents the base command when called without any subcommands.
Original file line number Diff line number Diff line change 2
2
package installer
3
3
4
4
import (
5
- "aws-cli-manager/pkg/settings"
6
5
"errors"
7
6
"fmt"
8
7
"log"
9
8
"os"
10
9
"os/exec"
11
10
"runtime"
11
+
12
+ "github.com/user-cube/aws-cli-manager/pkg/settings"
12
13
)
13
14
14
15
// InstallAWSCLI checks if AWS CLI is installed and installs it if not.
Original file line number Diff line number Diff line change 1
1
package profile
2
2
3
3
import (
4
- "aws-cli-manager/pkg/models"
5
- "aws-cli-manager/pkg/settings"
6
- "aws-cli-manager/pkg/sharedModules"
7
4
"fmt"
8
- "github.com/AlecAivazis/survey/v2"
9
- "gopkg.in/yaml.v2"
10
5
"log"
11
6
"os"
12
7
"os/exec"
13
8
"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"
14
15
)
15
16
16
17
func SelectProfile () {
You can’t perform that action at this time.
0 commit comments